In Wix 3.11, I'm trying to run a DISM command using a Quiet Execution Custom Action like this:
<SetProperty Id="CA_EnableMSMQ" Value=""[System64Folder]dism" /Online /NoRestart /Enable-Feature /FeatureName:MSMQ-Server /All" Sequence="execute" Before="CA_EnableMSMQ" />
<CustomAction Id="CA_EnableMSMQ" BinaryKey="WixCA" DllEntry="WixQuietExec64" Execute="deferred" Return="check" Impersonate="no"/>
<InstallExecuteSequence>
<Custom Action="CA_EnableMSMQ" After="InstallFiles"/>
</InstallExecuteSequence>
But I get an error with not much information. As my custom action is 32-bits, perhaps it's not possible to call a 64-bits exe, so I tried to invoke a 32-bit Quiet Execution CA with the 32-bits dism.exe like this:
<SetProperty Id="CA_EnableMSMQ" Value=""[SystemFolder]dism" /Online /NoRestart /Enable-Feature /FeatureName:MSMQ-Server /All" Sequence="execute" Before="CA_EnableMSMQ" />
<CustomAction Id="CA_EnableMSMQ" BinaryKey="WixCA" DllEntry="WixQuietExec" Execute="deferred" Return="check" Impersonate="no"/>
<InstallExecuteSequence>
<Custom Action="CA_EnableMSMQ" After="InstallFiles"/>
</InstallExecuteSequence>
But the problem is the same:
Executing op: CustomActionSchedule(Action=CA_EnableMSMQ,ActionType=3073,Source=BinaryData,Target=WixQuietExec,CustomActionData="C:\Windows\SysWOW64\dism" /Online /NoRestart /Enable-Feature /FeatureName:MSMQ-Server /All)
Invoking remote custom action. DLL: C:\Windows\Installer\MSI1137.tmp, Entrypoint: WixQuietExec
Created Custom Action Server with PID 8008 (0x1F48).
Running as a service.
Hello, I'm your 32bit Elevated Non-remapped custom action server.
Creating MSIHANDLE (141) of type 790531 for thread 5776
WixQuietExec: Error 0x80070005: Command failed to execute.
WixQuietExec: Error 0x80070005: QuietExec Failed
WixQuietExec: Error 0x80070005: Failed in ExecCommon method
CustomAction CA_EnableMSMQ returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
I don't know what to check. The command line works fine in a cmd prompt. Any help appreciated
User contributions licensed under CC BY-SA 3.0