Executable launches after running with runas

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
lincoln.gaudreau@accor.com
Posts: 2
Last visit: Wed Apr 10, 2019 8:24 am

Executable launches after running with runas

Post by lincoln.gaudreau@accor.com »

Product, version and build: PowerShell Studio 2018 v5.5.152
32 or 64 bit version of product: 64bit
Operating system: Windows 10 1709
32 or 64 bit OS: 64bit

I've converted a script to a Windows Application using the SAPIEN PowerShell V2 Host (and also tried V3).

I've set the program with both a RunAs User and Impersonate user in different tests, and with each test the program will run correctly under multiple user account, but after exiting it will immediately launch a second time.

Is there a way to prevent this? What information do you need to assist with this?

Thank you!
packager - output settings.PNG
packager - output settings.PNG (23.83 KiB) Viewed 1314 times
packager - engine.PNG
packager - engine.PNG (49.03 KiB) Viewed 1314 times
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Executable launches after running with runas

Post by mxtrinidad »

Thank you for the identifying this issue.

I was able to replicate the condition. In general, it seems the execute the script twice.
When doing the "Build and Run" option, the script exe runs but when exiting, the script will run the second time.

Will be looking into it!
Thanks
User avatar
lincoln.gaudreau@accor.com
Posts: 2
Last visit: Wed Apr 10, 2019 8:24 am

Re: Executable launches after running with runas

Post by lincoln.gaudreau@accor.com »

Great, thank you!
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.