I'm having an issue with this custom action and I've yet to see a decent example that does something more complex than run a file.
I've read this but it doesn't take into account extra parameters: http://wix.sourceforge.net/manual-wix3/qtexec.htm
I just managed to get this to not to complain after seeing something about quoting to receiving this error. I'm not sure why but the command works copying and pasting into a command window.
Anybody have an idea why this won't work in a Quiet CA?
Cheers, J
MSI (s) (E4:F0) [11:04:26:983]: Creating MSIHANDLE (1774) of type 790542 for thread 6896
MSI (s) (E4:28) [11:04:26:983]: Invoking remote custom action. DLL:
C:\WINDOWS\Installer\MSI2D95.tmp, Entrypoint: CAQuietExec
MSI (s) (E4!A0) [11:04:26:998]: Creating MSIHANDLE (1775) of type 790541 for thread 9632
MSI (s) (E4!A0) [11:04:26:998]: Creating MSIHANDLE (1776) of type 790531 for thread 9632
MSI (s) (E4!A0) [11:04:26:998]: Closing MSIHANDLE (1776) of type 790531 for thread 9632
MSI (s) (E4!A0) [11:04:26:998]: PROPERTY CHANGE: Deleting QtExecCmdLine property. Its
current value is '"c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -s
W3SVC/1/ROOT/ConfigurationWebService"'.
MSI (s) (E4!A0) [11:04:26:998]: Creating MSIHANDLE (1777) of type 790531 for thread 9632
CAQuietExec: Error 0x80070003: Command failed to execute.
MSI (s) (E4!A0) [11:04:26:998]: Closing MSIHANDLE (1777) of type 790531 for thread 9632
MSI (s) (E4!A0) [11:04:26:998]: Creating MSIHANDLE (1778) of type 790531 for thread 9632
CAQuietExec: Error 0x80070003: CAQuietExec Failed
MSI (s) (E4!A0) [11:04:26:998]: Closing MSIHANDLE (1778) of type 790531 for thread 9632
MSI (s) (E4!A0) [11:04:26:998]: Closing MSIHANDLE (1775) of type 790541 for thread 9632
MSI (s) (E4:28) [11:04:26:998]: Closing MSIHANDLE (1774) of type 790542 for thread 6896
Action ended 11:04:26: QtExecExample. Return value 3.
Action ended 11:04:26: INSTALL. Return value 3.
You should put just the full path to aspnet_regiis into quotes, like this:
<CustomAction Id="SetMyAction" Property="MyAction" Value=""[NETFRAMEWORK40FULLINSTALLROOTDIR]aspnet_regiis.exe" -s
W3SVC/1/ROOT/ConfigurationWebService"/>
where [NETFRAMEWORK40FULLINSTALLROOTDIR]
holds the full path to the folder aspnet_regiis resides in, ending with a back slash. This property is defined in the WiXNetfxExtension.