wix - How to check an installed version of a product from MSI -
after review lot of posts in site decide put mine. preparing msi file wix. need check if particular version of enterprise product installed, before install system. have guid of product (which same versions), need check if 1.10.0 version installed. idea, please. in advance.
pd: newbie in wix, @ moment using wxs file created default setup project.
clarifying: don't want upgrade software installing, need check program , version installer depends.
to properly, want use custom action. inside custom action, use msigetproductinfo function: http://msdn.microsoft.com/en-us/library/aa370130%28v=vs.85%29.aspx
a way of doing in pure-wix modify example found here: how compare registry versions in wix?
first create registrysearch element:
<property id="productversion"> <registrysearch id="productversionsearch" root="hklm" key="software\microsoft\windows\current version\uninstall\[productcode]" name="displayversion" type="raw" /> </property>
then use condition element:
<condition message="product version 1.10.0 must installed"> <![cdata[productversion , productversion = "1.10.0"]]> </condition>
this search version 1.10.0, may not want if you're looking "v1.10.0 or newer"... should started.
Comments
Post a Comment