The Product Version is tricky with the Windows Installer.  MSI only respects 
the first three numbers in the version.  So, "0.9.2006.1211" and 
"0.9.2006.1212" look the same.  It's documented in the MSI SDK if you look up 
ProductVersion.  In general your version should be, 
MajorNumber.MinorNumber.BuildNumber.Revision (where BuildNumber always changes 
and Revision changes usually when you do an extra build of the same thing... 
i.e. it's fuzzy when Revision changes).  <smile/>

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Pavlov
Sent: Monday, December 11, 2006 22:11
To: 'Justin Rockwood'; [email protected]
Subject: [WiX-devs] smooth version upgrade

Hi Justin, guys,

Could you please help me?
I need to develop the installer which will smoothly update my program to the 
next version.
I mean that user shouldn't remove manually previous version of the program 
before installing new version.
I have used the WiX installer as a sample and after some playing with versions 
I decided that it works ok but now I have changed the version and installer 
told me that later version is already installed.

I use following format for versioning: MajorNumber.MinorNumber.Year.MonthDay.

I changed old version 0.9.2006.1211 to new one 0.9.2006.1212 and my installer 
told that later version is already installed.

How can I fix the problem?


-- My code:

<?define Version  = "0.9.2006.1212" ?>
<?define UpgradeCode = "13263952-62A0-49CC-AD60-D8D388C94245" ?>
...
<Condition Message="A later version of [ProductName] is already installed."> 
NOT NEWERVERSIONDETECTED </Condition>
...
<Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion
            Minimum="$(var.Version)"
            OnlyDetect="yes"
            Property="NEWERVERSIONDETECTED" />
      <UpgradeVersion
            Minimum="0.0.0.0"
            IncludeMinimum="yes"
            Maximum="$(var.Version)"
            IncludeMaximum="no"
            Property="OLDERVERSIONBEINGUPGRADED" />
</Upgrade>

--------

Thank you!
Best wishes,

Dmitry Pavlov,

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to