开发者

How do I set the MSI exit-code to 0 if product is already installed using WiX?

I already have the following line in my WiX setup to check if the current version is already installed:

<UpgradeVersion OnlyDetect='yes' Property='NEWPRODUCTFOUND' Minimum='$(var.ProductVersion)' IncludeMinimum='no' />

The MSI exits with a message and exit code "1638". However, this MSI is part of a bootstrapper that 开发者_JS百科chains multiple MSIs together - and I want the bootstrapper to continue and install the following MSIs.

How do I tell WiX/MSI to exit with exit code 0 and no message dialog?

I could modify the bootstrapper but would rather prefer to set the exit code to 0.

(The exact exit code is: ERROR_PRODUCT_VERSION - "Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.")


It seems WixExitEarlyWithSuccess Custom Action is what you need.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜