我想用PCMINSTALLDIR调用带有参数的.exe,这样我就可以使用.exe中传递的参数了。当我运行安装程序时,它说我的安装程序有问题。谁能告诉我我的代码有什么问题?以及如何调试它?感谢。
WiX文件:
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.PlatformProgramFilesFolder)" Name="PFiles">
<Directory Id="CompanyDir" Name="ABC">
<Directory Id="PCMINSTALLDIR" Name="ClientMonitor">
<Directory Id="STDSCIPTSDIR" Name="standard_scripts">
</Directory>
<Directory Id="CSTMSCIPTSDIR" Name="custom_scripts">
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
.....
<CustomAction Id="ChangeConfigExe" Directory="PCMINSTALLDIR" ExeCommand ='PcmConfigExe.exe Hello' Execute="deferred" Impersonate="no" Return="check" />
<InstallExecuteSequence>
<Custom Action="ChangeConfigExe" Before="InstallFinalize" />
</InstallExecuteSequence>