How can I launch an application as Administrator after a WiX MSI has completed?

Posted by ray dey on Stack Overflow See other posts from Stack Overflow or by ray dey
Published on 2010-03-02T15:00:04Z Indexed on 2010/05/09 19:28 UTC
Read the original article Hit count: 193

Filed under:
|
|
|

Hi there

I want to launch an application with admin rights after I have completed an installation using a WiX based MSI. I can launch the application just fine, on XP but with Windows 7, it's an issue.

The application has a manifest embedded in it that says it should run as administrator and I've changed the impersonate attribute in the Custom Action to "no". I can't change the execute attribute to deferred, as this only works before the InstallFinalize action and I need it after the user has clicked Finish in the MSI.

This is my Custom Action:

<CustomAction Id="LaunchApp" FileKey="App" ExeCommand="[Command Line Args]" Execute="immediate" Impersonate="no" Return="asyncNoWait" />

Any help on this would be appreciated. Thanks

© Stack Overflow or respective owner

Related posts about wix

Related posts about wix3