We are populating the IIS websites to a drop down list based on the instructions provided here: Bind IIS local websites in dropdown list of wix installation?
The custom action works when the msi is launched from admin command prompt, however there is a failure when the msi is launched with out admin rights. Having the Impersonate value to no in the CA does not elevate the custom action execution with administrator privileges.
Is there a way to launch the msi with administrator privileges? How to execute immediate custom action in UI sequence with elevated access rights?
Thanks.
Fragment
orProduct
element add<Condition Message="Launch installer with admin rights!">Privileged</Condition>
... see also. – zett42<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
. For that .exe you may create SFX with 7zip or use WiX Burn for example. – zett42