开发者

Wix CustomAction Binary SourceFile not found

开发者 https://www.devze.com 2023-01-03 10:09 出处:网络
<Binary Id=\"binUpdate\" SourceFile=\"c:\\xxx\\Update.exe\"/> <CustomAction Id=\"Update\" BinaryKey=\"binUpdate\" Execute=\"deferred\" ExeCommand=\"c:\\xxx\" />
<Binary Id="binUpdate" SourceFile="c:\xxx\Update.exe"/>

<CustomAction Id="Update" BinaryKey="binUpdate" Execute="deferred" ExeCommand="c:\xxx" />

When I build a Wix project with the above custom action, it complains that "The system 开发者_Python百科cannot find the file 'C:\xxx\Update.exe".

This update.exe is deployed by the same msi. So, how do I make Wix to ignore the fact that the file does not exist on my build machine?

Thanks in advance


You can drop the executable in the same folder as your "Product.wxs" file and doing something like this...

<CustomAction Id="Update" FileKey="Update.exe" ExeCommand="param1" Execute="immediate" Return="asyncNoWait" />;

Here is a link at codeprojects

0

精彩评论

暂无评论...
验证码 换一张
取 消