UPGRADINGPRODUCTCODE condition not working in wixu

2019-02-25 22:33发布

UPGRADINGPRODUCTCODE condition not working in wixui_install.wxs in library

I want to change the value of next button to respective dlg if first time install and for major upgrade.

This is not working in wix library.

Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="PortNoDlg" >LicenseAccepted = "1" AND NOT UPGRADINGPRODUCTCODE

Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" >LicenseAccepted = "1" AND UPGRADINGPRODUCTCODE

标签: wix
1条回答
迷人小祖宗
2楼-- · 2019-02-25 23:23

UPGRADINGPRODUCTCODE is set only for the hidden uninstallation of a package found via the Upgrade table and FindRelatedProducts/RemoveExistingProducts. This does not show any UI, so conditioning control events off of this property will not be helpful.

By contrast UPGRADINGPRODUCTCODE is not set for the newer installation. If you want to condition your control events on whether a previous version will be uninstalled, you must reference the properties specified in the ActionProperty of each record in the Upgrade table.

查看更多
登录 后发表回答