Hi Alex,
Thank you very much for your information. Actually I don't worry about whether
minor upgrade or major upgrade. When user install the same installation
directory as pervious version, I will replace/upgrade that version with the
latest install.
Example:
I got the following version installed on my system:
Version1 : C:\PathA
Version1.5 : C:\PathB
Version2 : C:\PathC
If I run Version3 installer and install directory is C:\PathB, Version1.5 will
upgrade to Version3, in my system I should have the following versions:
Version1 : C:\PathA
Version3 : C:\PathB
Version2 : C:\PathC
If I run Version3 installer and install different location C:\PathD, my system
should have the following versions:
Version1 : C:\PathA
Version1.5 : C:\PathB
Version2 : C:\PathC
Version3 : C:\PathD
Thanks
Puyopuy
----- Original Message ----
From: Alexander Shevchuk <[EMAIL PROTECTED]>
To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
Sent: Wednesday, 26 March, 2008 4:16:19 AM
Subject: Re: [WiX-users] Upgrade basis on installdir
Properly implemented major upgrade requires the following:
- Same UpgradeCode (Product/@UpgradeCode);
- Different ProductCode(Product/@Id);
- Different PackageCode (Package/@Id);
- Different version (Product/@Version);
- Records in the Upgrade table and few standard and custom actions
(see http://msdn2.microsoft.com/en-us/library/aa369786(VS.85).aspx for more
detail).
As you can see, major upgrade does not care about installation directory and
during major upgrade product will be reinstalled in the previously selected
installation directory.
For a situation you described, it seems like you need either small update or
minor upgrade, but not major upgrade.
For example, you need an installer for version 1.0. You also need a separate
installer for version 1.5 and an upgrade for 1.0 to upgrade it to 1.5 and so on.
Alex
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of puyo puy
Sent: Tuesday, March 25, 2008 12:19 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Upgrade basis on installdir
Hello everyone,
As I know if I want to create a MSI setup file to check for existing installed
product from the system and upgrade to the new installer. I need to keep the
UpgradeCode and change the ProductCode. Every time when user run the latest
installer, MSI will uninstall the old one and install the new version and you
will only find one entry in Add/Remove program.
How can I create an MSI that will check the current installed product's
location, when the new version going to install the same location as existing
path, I will treat as upgrade(uninstall then install the new one with the
existing path). But if it install different location and I will treat as new
install.
Example.
MyProduct Version1.0 installed in c:\PathA. MyProduct Version1.5 installed in
c:\PathB. For my new installer MyProduct Version 2.0, if user going to install
it in c:\PathA or c:\PathB, my new installer should treat as upgrade and it
will uninstall c:\PathA(or c:\PathB, depend on where the new installdir). And
user should see 2 entries in Add/Remove Program. If user install Version 2.0
in c:\PathC, the new installer should treat it as new install and he/she should
see 3 entries in Add/Remove Program.
Any help is much appreciated.
Puyopuy
Get the name you always wanted with the new y7mail email address.
Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users