wix - How to execute .exe file in MSI without bootstrapper? -


i have .exe file executed during installation. executed when msi file launched bootstrapper(an .exe file launches main msi file) not executed when launched msi itself. seems problem related privilege, because bootstrapper acquires privilege when launched , if execute msi in cmd.exe has privilege, executes .exe file well.

it's real problem comes when enter maintenance mode arp menu in control panel. .exe file executed according feature's action state. executed when enter maintenance mode original msi launched bootstrapper(it has privilege), not executed when enter maintenance mode arp menu in control panel.

i want executed equally when enter manintenance mode arp menu in control panel.

below part of code.

<customaction id="ca1" binarykey="file.exe" execommand="" execute="deferred" return="asyncnowait" /> ... <custom action="ca1" before="installfinalize"><![cdata[&feat1=3]]></custom> 

thank you.

you're custom action scheduled in deferred between installinitialize , installfinalize. what's missing impesonate attribute needs set 'no'. cause run elevated in system context. it's impersonating user started install , if process isn't elevated exe won't elevated.

also calling exe i'd @ wix quiet execute custom action. sure read , understand installation phases , in-script execution options custom actions in windows installer.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -