2010-06-09 32 views
1
<Binary Id="binUpdate" SourceFile="c:\xxx\Update.exe"/> 

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

當我使用上述自定義操作構建Wix項目時,它抱怨說「系統找不到文件'C:\ xxx \ Update.exe'。Wix CustomAction Binary SourceFile not found

此update.exe由相同的msi部署。那麼,如何讓Wix忽略文件在我的構建機器上不存在的事實?

在此先感謝

回答

0

您可以在同一文件夾拖放可執行文件作爲你的 「Product.wxs」 文件,做這樣的事情...

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

Here is a link at codeprojects

+0

請讓我知道,如果我的答案是有用的做出選擇的答案或評論,如果不是。 – Terrance 2010-06-16 12:33:51