First, I love WiX. I don't think I can say that enough. Windows 
Installer is a huge pain and this product makes it bearable and almost fun.

Ok, enough sucking up. I am reading the section about upgrades here:

   http://wix.sourceforge.net/manual-wix3/major_upgrade.htm

It appears that the recommendation is to generate the Product Id every 
time. In addition to this, I am also generating the Package Id every 
time. In fact, when I want an installation to overwrite the existing 
installation (by uninstalling and installing on top), I am only leaving 
the UpgradeCode as static.

Specifically, here are the relevant sections of my wxs file:

   <Product Id="*"
            UpgradeCode="A-GUID"
            Name="Product SDK"
            Language="1033"
            Version="1.0.1"
            Manufacturer="Company Inc.">

     <Package Id="*"
              Description="Product SDK"
              Manufacturer="Company Inc."
              InstallerVersion="200"
              Compressed="yes" />

     <Upgrade Id="SAME-GUID-AS-A-GUID">
       <!--
           The Maximum version should be one less than the current
           minor version (or 0 if negative).

           The Minimum version should be the first in this product
           series
       -->
       <UpgradeVersion Minimum="1.0.0"
                       IncludeMinimum="yes"
                       Maximum="1.0.0"
                       IncludeMaximum="yes"
                       Property="OLDERVERSIONBEINGUPGRADED" />
     </Upgrade>

     <InstallExecuteSequence>
       <RemoveExistingProducts After="InstallInitialize"/>
     </InstallExecuteSequence>

Does this sound like a silly, dangerous thing to do or am I a genius?

Thanks in advance.

-- 
Sohail Somani
--
iBlog : http://uint32t.blogspot.com
iTweet: http://twitter.com/somanisoftware
iCode : http://bitbucket.org/cheez



------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to