I have the following WiX snippet:
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" /> <CustomAction Id="StartAppOnExit" FileKey="Configurator.exe" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait" /> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Configure initial settings" /> <UI> <Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="StartAppOnExit" >WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish> </UI>
Basically, the exit dialog box displays a field that says: start the application. Note. This app requires a boost. All this works great, except for misses. If UAC is turned on, it seems that MSI is galloping with the user's token and splitting its groups, so when it tries to run an application that requires a boost, it is no longer an option.
How to tie it together to work?
I tried throwing Impersonate = "no", but it's too late for this to work.
windows-installer wix
Sam saffron
source share