Do you have logic in your install that blocks if a newer version is found?

You will need a new Upgrade entry to detect prior versions that have the new 
upgrade code, too. (The one you are calling CurUpgradeID.)

-----Original Message-----
From: Colin Bleckner [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2008 4:04 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Better way to handle upgrades?

Hey Richard,

This sounds exactly like what I want to do, but I think I'm not quite
understanding things correctly.  Here's what I'm trying to do now.  I now
have two upgrade IDs, UpgradeID is the original that I've been using and
CurUpgradeID is one I just added.  I also reset my InstallVersion to
something reasonable:

  <?define UpgradeID = "901B62DA-92AD-4a90-8BF9-1EBEC88D1179" ?>
  <?define CurUpgradeID = "55E3C548-D483-44c9-AA18-FE3350518AF3" ?>
  <?define InstallVersion = "2.0.0" ?>

I changed my Product's UpgradeCode UpgradeID to CurUpgradeID:

  <Product Name='$(var.ProdName)' Id='*' UpgradeCode='$(var.CurUpgradeID)'
Language='1033' Codepage='1252' Version='$(var.InstallVersion)'
Manufacturer='$(var.Manufacturer)'>

And I left the <Upgrade> block alone, so it still references the original
UpgradeID.  But when I try to run this new installer over a previous install
I get an error message complaining that a newer version is already
installed.  I feel like your email was pretty explicit and yet I'm sure I'm
messing something up.  I also feel like I need to add another section to the
Upgrade block to handle my new install code.

Thanks for your help!
Colin

On Fri, Nov 7, 2008 at 3:21 PM, Richard <[EMAIL PROTECTED]> wrote:

>
> In article <[EMAIL PROTECTED]>,
>     "Colin Bleckner" <[EMAIL PROTECTED]>  writes:
>
> > Which means that what I'm doing isn't a great long term solution.  Is
> there
> > another way to guarantee that my product will replace all of my previous
> > ones without bumping the max version on every build?
>
> Product version comparisons use the first three fields of the
> four-field version number, so 1.0.1.x will upgrade 1.0.0.x.
>
> So yes, switch your product code, leave your Upgrade table populated
> with the product code for your previous builds so that those products
> are removed when you install this product.
>
> Then pick a version number back to 1.0.0 and just increment the
> smallest field on each build.
> --
> "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
>      
> <http://www.xmission.com/~legalize/book/download/index.html<http://www.xmission.com/%7Elegalize/book/download/index.html>
> >
>
>        Legalize Adulthood! <http://blogs.xmission.com/legalize/>
>
> -------------------------------------------------------------------------
> 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


-------------------------------------------------------------------------
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