CAQuietExec CA问题

时间:2011-08-19 10:30:26

标签: wix custom-action wix3.5 wix-iisextension

我遇到了这个自定义操作的问题,我还没有看到一个比运行文件更复杂的例子。

我已经读过这篇文章,但没有考虑额外的参数: http://wix.sourceforge.net/manual-wix3/qtexec.htm

在看到引用接收此错误的内容后,我设法让这个不要抱怨。我不确定为什么,但命令可以复制并粘贴到命令窗口。

任何人都知道为什么这在静音CA中不起作用?

干杯, Ĵ

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.

1 个答案:

答案 0 :(得分:2)

你应该把aspnet_regiis的完整路径放到引号中,如下所示:

<CustomAction Id="SetMyAction" Property="MyAction" Value="&quot;[NETFRAMEWORK40FULLINSTALLROOTDIR]aspnet_regiis.exe&quot; -s
W3SVC/1/ROOT/ConfigurationWebService"/>

其中[NETFRAMEWORK40FULLINSTALLROOTDIR]包含aspnet_regi所在文件夹的完整路径,以反斜杠结尾。此属性在WiXNetfxExtension

中定义