wix - Second elevation dialog -


i have simple application in i'm installing exe , running @ end of installation. when installation finished shows second elevation dialog app.exe don't want show, here wix code.

<?xml version="1.0" encoding="utf-8"?> 

<!-- following 3 sections how to: add file installer topic--> <directory id="targetdir" name="sourcedir">   <directory id="programfilesfolder">     <directory id="applicationrootdirectory" name="my application name"/>   </directory> </directory>  <directoryref id="applicationrootdirectory">   <component id="app.exe" guid="12345678-1234-1234-1234-222222222223">     <file id="app.exe" source="mysourcefiles\app.exe" keypath="yes" checksum="yes"/>   </component> </directoryref> <feature id="mainapplication" title="main application" level="1">   <componentref id="app.exe" /> </feature> <!-- step 2: add ui installer / step 4: trigger custom action --> <installexecutesequence>     <custom action='launchinstalledexe' after='installfinalize'/>   </installexecutesequence>    <customaction id="launchinstalledexe"      filekey="app.exe"       execommand=""      return="ignore" /> 

that executable being run after installfinalize, it's not going elevated default, , apparently has elevation manifest ask elevation. try before installfinalize (and not immediate) see if fixes problem, , want impersonated too. after installfinalize safer place. issue admin launch install (or push out via group policy) , walk away, leaving limited user having access program running elevated things limited user should not allowed do. wouldn't want install launched limited user later results in user having access program can configure database security, example. elevation prompt resulting after installfinalize appropriate security point of view. depends on clients , environment , product itself.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -