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