I am doing minor upgrade and my expectation is as follows:

If u installed 1.1.0, then say u upgraded to 1.1.1, then 1.1.2.
If you try apply 1.1.1 again, it should fail the upgrade.

Is this the right concept? Or do we expect the patch to work regardless
of the numbers (which strangely is fine because we don't remove files
that installed by previous upgrades)?

<!-- This is my 1.1.0 -->

    <Upgrade Id='b9bb6a3a-1cd3-4d20-a0b0-769c4eec4d0e'>
        <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
          Minimum='1.1.0' IncludeMinimum='no' />
    </Upgrade>

<!-- This is my 1.1.1 -->

    <Upgrade Id='b9bb6a3a-1cd3-4d20-a0b0-769c4eec4d0e'>
      <UpgradeVersion OnlyDetect='yes' Property='PATCHFOUND'
        Minimum='1.1.0' IncludeMinimum='yes' Maximum='1.1.1'
IncludeMaximum='yes'/> 
      <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
        Minimum='1.1.0' IncludeMinimum='no' />
    </Upgrade>


<!-- This is my 1.1.2 -->

    <Upgrade Id='b9bb6a3a-1cd3-4d20-a0b0-769c4eec4d0e'>
      <UpgradeVersion OnlyDetect='yes' Property='PATCHFOUND'
        Minimum='1.1.1' IncludeMinimum='yes' Maximum='1.1.2'
IncludeMaximum='yes'/> 
      <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
        Minimum='1.1.1' IncludeMinimum='no' />
    </Upgrade>
    


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson
Sent: 13 September 2008 17:25
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] WIX Upgrade code

Yu, Brian wrote:
>         Minimum='2.2.40.499' IncludeMinimum='yes' Maximum='2.2.40.599'
> IncludeMaximum='yes'/> 
>
>       <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
>
>         Minimum='2.2.40.599' IncludeMinimum='no' />
>   

Major upgrades don't distinguish product versions that differ only in 
the fourth place. See 
http://msdn.microsoft.com/en-us/library/aa372379(VS.85).aspx:

Note that Windows Installer uses only the first three fields of the 
product version. If you include a fourth field in your product version, 
the installer ignores the fourth field.

-- 
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to