Thanks for the xml code, I have followed this and it is working in one
scenerio. But tell me, should this work if product1 was installed using
"just me" and the product2 is being installed using "Everyone"? Cuz i am
testing this and this the case in which my product1 is not getting
uninstalled.

..ab
On Nov 27, 2007 3:23 AM, John Lalande <[EMAIL PROTECTED]> wrote:

> In theory (and in my projects), simply copy what you already have and
> replace 'product2guid' (which I hope is a uuid), with the UpgradeCode of the
> product you want uninstalled.  In the new entry remove the UpgradeVersion
> that uses the NEWERPRODUCTFOUND property and replace
> PREVIOUSVERSIONSINSTALLED with something like OTHERPRODUCTFOUND or whatever
> makes sense for you.  Make sure that OnlyDetect is No.
>
> I don't think you need the Property tags you have.  They will be created
> on demand and will be set to the ProductCode of the detected products.
>
> Your updated Upgrade elements may look similar to this (adjust as
> necessary):
>
> <Upgrade Id="product2guid">
>       <UpgradeVersion Minimum="1.0.57" Property="NEWERPRODUCTFOUND"
> OnlyDetect="yes" IncludeMinimum="yes" />
>       <UpgradeVersion Minimum=" 1.0.0.0" Maximum="1.0.57"
> Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" />
> </Upgrade>
> <Upgrade Id="otherproductguid">
>       <UpgradeVersion Minimum="1.0.0.0" Maximum="1.0.57"
> Property="OTHERPRODUCTFOUND" IncludeMinimum="yes" />
> </Upgrade>
>
> Finally, take heed of Christopher's comments as there are some subtleties
> about individual file versions as well as where you have scheduled
> RemoveExistingProducts.
>
> Also, you may want to read the tutorial for more details on upgrades:
> http://www.tramontana.co.hu/wix/lesson4.php.
>
> Good luck.
>
> John
>
>
> On Nov 26, 2007 8:55 AM, Abubakar <[EMAIL PROTECTED]> wrote:
>
> > Hi, can you provide me the tags necessary to do this?
> > Right now my Upgrade tags look like this:
> >
> >     <Upgrade Id="product2guid">
> >       <UpgradeVersion Minimum="1.0.57" Property="NEWERPRODUCTFOUND"
> > OnlyDetect="yes" IncludeMinimum="yes" />
> >       <Property Id="NEWERPRODUCTFOUND" Secure="yes" />
> >       <UpgradeVersion Minimum="1.0.0.0" Maximum="1.0.57"
> > Property="PREVIOUSVERSIONSINSTALLED" IncludeMinimum="yes" />
> >       <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
> >     </Upgrade>
> > regards,
> >
> > ..ab
> >   On Nov 26, 2007 7:16 PM, John Lalande <[EMAIL PROTECTED]> wrote:
> >
> > > ab
> > >
> > > It is much simpler then what you are proposing.  Simply add the
> > > UpgadeCode of the old product to the Upgrade table of your new product.  
> > > The
> > > old one will be uninstalled in the same manner as a previous
> > > version...silently during the RemoveExistingProducts action.
> > >
> > > John
> > >
> >
> >
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to