1
votes
<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 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

1

1 Answers

0
votes

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