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<http://au.rd.yahoo.com/mail/taglines/au/y7mail/default/*http:/au.yahoo.com/y7mail/?p1=ni&p2=general&p3=tagline&p4=other>.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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