Hi.

I need a simple way to prevent downgrades a product in a wix based msi
installer.

The old defective way which I found was something along:

<Property Id="CUR_VER">
        <RegistrySearch Id='CurrentVersion' Root='HKLM'
Key='Software\Foo\Client' Name='CurrentVersion' Type='raw'/>
</Property>
<Condition Message="Cannot install this version [ProductVersion] over
an existing installation [CUR_VER] that has a higher version number.
You may need to uninstall it first.">
NOT CUR_VER or ProductVersion&gt;=CUR_VER</Condition>

I want something which allows 1.2.3.10 to upgrade from 1.2.3.9. The
version above just does a string compare which fails.

Don't know if the solution at
http://www.tramontana.co.hu/wix/lesson4.php works. I would prefer
something which uses my registry key from the example above.


According to

http://msdn.microsoft.com/en-us/library/aa368012%28VS.85%29.aspx you
cannot compare versions at all in conditions but they suggest
searching for versions of installed files using Appsearch.

I'm fine with calling some external vbscript code or something which
does the registry searching and comparison

I don't understand how the answer at:

http://stackoverflow.com/questions/2109408/sequencing-custom-action-in-wix-before-launchconditions

relates to my question but they mention preventing downgrades in wix.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to