wix3 - WiX Installer: getting version of the product being upgraded -
during major upgrade version x version y, need have property/variable stating version x beingness upgraded.
when performing major upgrade of product setup built wix installer, there way version number beingness upgraded?
assuming you're using wix majorupgrade element, when upgrade detected value of wix_upgrade_detected property set productcode of product beingness upgraded. pass c++ win32 api msigetproductinfo (.... installproperty_versionstring...) version string. think there's dtf equivalent, productinstallation class build productcode , version. if didn't utilize majorupgrade element there still property previousversionsinstalled set productcode, depends on how you've set up. note strictly speaking upgrading more 1 product. done after findrelatedproducts. anyway, that's i'd at.
i don't think there's built-in way version. you'd need know upgrade going work first, you'd need property set findrelatedproducts upgrade search. there other things do, don't know if work in situation. illustration if launching msi external programme enumerate related products msi's productcode, version , pass property on command line cut down msi need do, assuming upgrade going work, may useless in situation.
wix wix3 major-upgrade
No comments:
Post a Comment