This is one of those things where I'd have to build a few MSI files and test
it. I could see the Windows Installer going a couple ways. <smile/>

On Wed, Dec 16, 2009 at 3:02 PM, Curtis Jewell <
lists.wix-us...@csjewell.fastmail.us> wrote:

> I've got a property that a custom action will expect to exist if a
> specific directory is supposed to be deleted upon uninstall.
>
> I'd like this property (call it UNINSTALL_SITE) to be set under either
> of two conditions: a) I'm uninstalling, not upgrading, or b) I'm
> upgrading, but the version number is doing a major jump (the first or
> second parts of the msi version are changing, say, from 5.10.257 to
> 5.12.0, but not 5.10.257 to 5.10.258)
>
> Would code like what's shown below do the job, or would the property not
> get to the old version's msi when doing the uninstall part of the
> upgrade?
>
> <!-- This code is in an msi with version 5.10.257 -->
>        <Upgrade Id='...-MY-GUID-HERE...'>
>          <UpgradeVersion
>            Minimum='5.10.257'
>                IncludeMinimum='yes'
>            OnlyDetect='yes'
>                Language='1033'
>                Property='NEWERVERSIONDETECTED' />
>          <UpgradeVersion
>                Minimum='5.0.0'
>                IncludeMinimum='yes'
>                Maximum='5.10.257'
>                IncludeMaximum='no'
>                Language='1033'
>                Property='OLDERVERSIONBEINGUPGRADED' />
>          <UpgradeVersion
>                Minimum='5.0.0'
>                IncludeMinimum='yes'
>                Maximum='5.10.0'
>                IncludeMaximum='no'
>                Language='1033'
>                Property='UNINSTALL_SITE' />
>        </Upgrade>
>
> <!-- This code is in the next msi, with version 5.10.258 -->
>        <Upgrade Id='...-MY-GUID-HERE...'>
>          <UpgradeVersion
>            Minimum='5.10.258'
>                IncludeMinimum='yes'
>            OnlyDetect='yes'
>                Language='1033'
>                Property='NEWERVERSIONDETECTED' />
>          <UpgradeVersion
>                Minimum='5.0.0'
>                IncludeMinimum='yes'
>                Maximum='5.10.258'
>                IncludeMaximum='no'
>                Language='1033'
>                Property='OLDERVERSIONBEINGUPGRADED' />
>          <UpgradeVersion
>                Minimum='5.0.0'
>                IncludeMinimum='yes'
>                Maximum='5.10.0'
>                IncludeMaximum='no'
>                Language='1033'
>                Property='UNINSTALL_SITE' />
>        </Upgrade>
>
> <!-- This code is in an msi a few months in the future, with version
> 5.12.0 -->
>        <Upgrade Id='...-MY-GUID-HERE...'>
>          <UpgradeVersion
>            Minimum='5.12.0'
>                IncludeMinimum='yes'
>            OnlyDetect='yes'
>                Language='1033'
>                Property='NEWERVERSIONDETECTED' />
>          <UpgradeVersion
>                Minimum='5.0.0'
>                IncludeMinimum='yes'
>                Maximum='5.12.0'
>                IncludeMaximum='no'
>                Language='1033'
>                Property='OLDERVERSIONBEINGUPGRADED' />
>          <UpgradeVersion
>                Minimum='5.0.0'
>                IncludeMinimum='yes'
>                Maximum='5.12.0'
>                IncludeMaximum='no'
>                Language='1033'
>                Property='UNINSTALL_SITE' />
>        </Upgrade>
>
> --Curtis Jewell
> --
> Curtis Jewell
> swords...@csjewell.fastmail.us
>
> %DCL-E-MEM-BAD, bad memory
> -VMS-F-PDGERS, pudding between the ears
>
> [I use PC-Alpine, which deliberately does not display colors and pictures
> in HTML mail]
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to