Hi Mark,

Major upgrade (http://msdn2.microsoft.com/en-us/library/aa369786(VS.85).aspx) 
is the easiest of upgrades to implement.  The only downside, I can think of, is 
the fact that it is a complete reinstall of the product, although by carefully 
scheduling RemoveExistingProducts 
(http://msdn2.microsoft.com/en-us/library/aa371197(VS.85).aspx) you can 
minimize how many files will be deleted/copied during upgrade.

Here 
(http://blogs.technet.com/alexshev/archive/2008/02/15/from-msi-to-wix-part-8-major-upgrade.aspx)
 is my own understanding of how major upgrade can be implemented.  To make it 
work *in WiX*, you need:

-          Change Product/@Id, Package/@Id, and Product/@Version (incrementing 
the third field only is fine);

-          Never change Product/@UpgradeCode;

-          Make sure that Product/@Language is listed in Package/@Languages;

-          Add records to Upgrade table;

-          Schedule RemoveExistingProducts in the InstallExecuteSequence table

I have not tried to remove downgrade prevention support, so you can play with 
it to check if downgrade will be allowed.  I don't see why it would not since I 
had to go extra mile to prevent it.

Regards,
Alex




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Markus Kuehni
Sent: Sunday, March 09, 2008 8:36 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Always change the product code?

Hi

After having read about all the gotchas of minor upgrades, including the 
necessity for msiexec command-line args, I think it's best (in our case) to 
always change the product code and be sure to always get a clean install.

I expect it results in more file deleting/copying activity than would be 
necessary, but that's ok.

Is there any other downside I should be aware of?

Can I still only change the third field of the product version number?

Is it true, that this way I can even perform a clean downgrade, if necessary?

Is there a good example for <Upgrade> and <UpgradeVersion> ?

Thanks,
Mark
-------------------------------------------------------------------------
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

Reply via email to