开发者

Wix CustomAction Binary SourceFile not found

<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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜