Major upgrade requires ProductCode, PackageCode, and ProductVersion to be
different in the new version.
I don't know if that will make any difference, but because you product has 4
fields in the version number, try to change <UpgradeVersion Minimum="1.0.0"
to Minimum="1.0.0.0".
Otherwise, everything looks fine to me.

Alex



-----Original Message-----
From: gulfam murad [mailto:gulfam.mu...@gmail.com] 
Sent: Friday, June 05, 2009 8:08 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] problem with upgarde

Alex, here is the code I am using to generate my msi.

 <?define ProductCode = "*"?>
  <?define UpgradeCode = "{82594B5A-5CA6-4C6F-A9F1-EF75A504B592}"?>
  <?define PackageCode = "85644E17-6902-4583-ACD6-F5AF271FEDE5"?>
  <?define ProductVersion = "12.0.0.9020"?> <!--for the 2nd msi this
version will be 12.0.1.9020-->

  <Product Id="$(var.ProductCode)" Name="$(var.ProductName)"
Language="!(loc.ProductLanguage)" Codepage="1252"
    Version="$(var.ProductVersion)"
Manufacturer="!(loc.ProductManufacturer)"
UpgradeCode="$(var.UpgradeCode)">

<Package Id="$(var.PackageCode)" Keywords="!(loc.PackageKeyWord)"
Description="!(loc.PackageDescription)" Compressed="yes"
      Comments="!(loc.PackageComments)"
Manufacturer="!(loc.ProductManufacturer)"
InstallerVersion="$(var.PackageInstallerVersion)"
      Languages="!(loc.ProductLanguage)"
SummaryCodepage="!(loc.LanguageCodePage)" InstallPrivileges="elevated"
InstallScope="perMachine"/>

<Upgrade Id="$(var.UpgradeCode)">
 <UpgradeVersion Minimum="1.0.0" IncludeMinimum="yes"
Maximum="$(var.ProductVersion)"
Property="OLDERVERSIONBEINGUPGRADED" />
    </Upgrade>

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

<WixVariable Id="WixUISupportPerUser" Value="0" />

Phil, I already tried PackageCode change and posted, i think you
missed that email. anyways, when I change PackageCode to be different
for different MSIs. The two MSIs work independently of each other.
That is I can install both MSIs successfully on my machine, and both
will be in Add/Remove Programs.

----------------------------------------------------------------------------
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to