AndrewAu
Posts: 3
Joined: Thu Jun 16, 2011 6:48 am

Post install, run process as logged in user

Hello,

I've got an installer that correctly prompts (and requires) admin/UAC elevation to be installed (whole machine install instead of just current user).

Once installation finishes, I use a 'EXE with working dir' command to launch the installed application.

However, I want the application to run as the logged in user -- not the administrator who OK'd the UAC prompt.

From my understanding its near/impossible for an elevated process (which the MSI has become due to the initial UAC prompt) to execute a non-elevated process.

Is there a technique to run the application after installation, without inheriting the elevation given to the installer?

Obviously I'd like to keep the single installer.msi file and not need to create a 'boostrapper' program that runs the installer and then the application post-launch.

Thanks,
Andrew
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Post install, run process as logged in user

Hi Andrew and welcome to the Advanced Installer Forums,

Because Custom Actions inherit the same privileges from the Windows Installer service, the custom action will have only these privileges even when running in an elevated context.

If your application installation requires configuration that requires other privileges, this functionality cannot be achieved with a custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”