下面是我尝试安装我的MSI时的代码,它可以执行所有操作,但以下几行未显示执行的迹象。
<Binary Id="unzipExeId" SourceFile="unzip.exe"/>
<Property Id="WixQuietExec64CmdLine" Value="[#$(var.InstallationLocation)\unzip.exe]"/>
<CustomAction Id="unzipAction" BinaryKey="unzipExeId" DllEntry="WixQuietExec64" Execute='deferred' Return ='asyncWait' Impersonate='no'/>
<InstallExecuteSequence>
<Custom Action='unzipAction' Before='InstallFinalize'/>
</InstallExecuteSequence>
我有什么想念的吗?
但是当我尝试这段代码时
<Binary Id="unzipExeId" SourceFile="unzip.exe"/>
<CustomAction Id="unzipAction" BinaryKey="unzipExeId" ExeCommand="START /B unzip.exe" Execute='deferred' Return ='asyncWait' Impersonate='no'/>
<InstallExecuteSequence>
<Custom Action='unzipAction' Before='InstallFinalize'/>
</InstallExecuteSequence>
一切正常,但执行unzip.exe会在计算机中弹出。该exe不会以静默方式安装。但是我需要默默地执行EXE。提前致谢
它可能与DllEntry有关,而不是尝试使用“ CAWixQuietExec64”来使用“ WixQuietExec64”。
关于此有一个未解决的问题。http://wixtoolset.org/issues/4802/
这是常见的用法:
<CustomAction Id="CA_RunBatchScript"
BinaryKey="WixCA"
DllEntry="CAQuietExec"
Execute="deferred"
Return="check" />
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句