The only way I have found thus far to quietly run a CustomAction with admin privileges given to the installer is using this (taken from http://wix.sourceforge.net/manual-wix3/qtexec.htm):
<CustomAction Id="QtExecDeferredExampleWithProperty_Cmd" Property="QtExecDeferredExampleWithProperty" Value=""[#MyExecutable.exe]"" Execute="immediate"/> <CustomAction Id="QtExecDeferredExampleWithProperty" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> . . . <InstallExecuteSequence> <Custom Action="QtExecDeferredExampleWithProperty_Cmd" After="CostFinalize"/> <Custom Action="QtExecDeferredExampleWithProperty" After="TheActionYouWantItAfter"/> </InstallExecuteSequence> However, I want to run such a CA asynchronously, but setting Return="asyncNoWait" returns a candle/light error requiring the ExeCommand argument be set, and if I do that, then it complains further: C:\MyClientPackage_v1.0.0.wxs(553) : error CNDL0023 : The CustomAction/@DllEntry attribute cannot coexist with a previously specified attribute on this element. The CustomAction element may only have one of the following target attributes specified at a time: DllEntry, Error, ExeCommand, JScriptCall, Script, Value, or VBScriptCall. So this doesn't seem to be able to work. Any ideas how else we can quietly execute CA with admin privileges asynchronously? Alain ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users