werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

bootstraper, impersonation and process integrity

I have an Advanced Installer project that installs Adobe Air as a prerequisite. The Air installer requires administrator privileges to run, so the bootstrapper is set to require an execution level of "Requires Administrator" to run..

At the end of the msi installation process we have a custom action to launch the application that was installed.. This custom action is set to "Deferred", so it should attempt to do impersonation when executing the application.

However, when the exe is run, the process integrity of the exe is set to "high", as if impersonation didn't occur; normally it should be running at medium integrity. Moreso, when the prerequisite and the bootstrapper is removed (running the msi directly), the impersonation works fine and the application executes as expected, as medium process integrity.. You can see the difference in this; when the bootstrapper runs msiexec its running as high integrity, as where running msiexec directly, it runs at medium integrity (where UAC is turned on).

I believe this is due to the bootstrapper executing the included msi as administrator, inheriting the parent process's integrity level; thus the msi's attempt at impersonation doesn't work.. I do realize that running the MSI at medium integrity from the bootstrapper would likely cause two UAC prompts to appear (one for the bootstrapper, then one when the MSI needs to elevate). But I'm hoping that there may be a setting somewhere that I'm missing, that might fix this problem. Is this something that can be fixed, or is the attempted impersonation with the custom action at the end just part of Windows Installer and not fixable (by you guys)??

At this point, I'm probably going to have to code a custom action to run the exe at medium integrity.. But I'm hoping to avoid that..

Thanks,

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

Re: bootstraper, impersonation and process integrity

Hello,

Please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”