Run application with without elevated privilges - Advanced Installer Community
NickB
Posts: 1
Joined: Mon Oct 09, 2017 12:56 am

Run application with without elevated privilges

Our application supports having files dropped onto it from Windows Explorer. However, when it is run from the installer when installation is complete the drag and drop does not work. It appears that this is due to the application being run with elevated privilges. As per this blog (https://blogs.msdn.microsoft.com/patric ... -and-uipi/), when an application has elevated privilges it cannot accept drag and drop operations.

Our installer needs to run with elevated privilges, but when it launches the application it should not have elevated privilges. Is there an option for this behaviour? I cannot see one.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Run application with without elevated privilges

Hello,

Please note that a process inherits the privilages from the parent process. A solution for this case could be not using "Run as Administrator" option from "Install Parameters". Is there any reason why you have the "Run as admin" option enabled?

Instead you could use elevation only for the custom actions that require it.

In order get a better view of your scenario please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”