我在我的wxs文件中定义了一个自定义操作:
<CustomAction ExeCommand="long command line" FileKey="xyz.exe" Id="foo"/>
我收到警告:
警告LGHT1076 : ICE03:字符串溢出(大于列允许的长度);表: CustomAction,列:目标,键:
用长命令行定义操作的正确解决方案是什么?
发布于 2015-07-09 14:57:54
过了很多次,我找到了解决办法。我将命令行拆分为多个属性。
<CustomAction Id="action.prop0" Property="prop0" Value="first part with [INSTALLDIR]"/>
<CustomAction Id="action.prop" Property="prop" Value="[prop0] second part"/>
<CustomAction ExeCommand="[prop]" FileKey="service.exe" Id="myaction"/>
<InstallExecuteSequence>
<Custom Action="action.prop0" After="InstallFiles"/>
<Custom Action="action.prop" After="action.prop0"/>
<Custom Action="myaction" Before="InstallFinalize"/>
</InstallExecuteSequence>
发布于 2015-07-08 12:56:08
将长命令行分配给属性,然后在自定义操作中使用属性。虽然EXE自定义操作在一般情况下是不受欢迎的。如果必须这样做,请使用WiX静音执行自定义操作功能。
https://stackoverflow.com/questions/31292039
复制相似问题