yogesh12
Posts: 23
Joined: Mon Sep 01, 2008 6:52 am

Launching file after installation - UAC-Elevated privileges

Hello All,

The package is installed using Administrative Rights (as there are few services that gets installed and are running) and on click of "Finish" button on the "ExitDialog" we have Launch the application. When the application is executed it is to displays the Logged-on users desktop (Files/Folders) details by default. But instead it displays the Admin User desktop (Files/Folders) details as we have elevated the privileges while package installation.

System Logged-on user can be an Admin User or a Standard User (Non-Admin).

How to reverse the elevation process before pressing the "Finish" button on the "ExitDialog" so that the Logged-on users desktop (Files/Folders) details are viewed when the application gets executed?

Thank you for you valuable time to read and think on the problem.

Thanks,
Yogesh
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: Launching file after installation - UAC-Elevated privile

Hi Yogesh,

Please keep in mind that the installer rights will be inherited by all the applications or custom actions that it launches.

If the "Run as administrator" option is set in the "Install Parameters" page for a package, then that package will run elevated from the beginning.

If that option is not set, the package will have elevation only while the "ProgressDlg" dialog is displayed, so the applications launched on the "Finish" dialog will not be elevated.

For more details you can take a look on the Question regarding the TerminateProcess thread.

So, you do not need the "Run as administrator" option enabled if the services are installed on the "Install Execution Stage" section (while the "ProgressDlg" dialog is displayed).

I'm afraid that the application cannot be launched without administrator rights if that option is enabled.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”