Hi all,

I have implemented upgrades by doing the following (I have an include file
that has the product/package properties which I define and include the
include file :)...

<Product Id="$(var.ProductCode)"
           Name="$(var.PlatformProductName)"
           Language="1033"
           Version="4.0.1.25"
           Manufacturer="$(var.ProductCompany)"
           UpgradeCode="$(var.UpgradeCode)">
    <Package Id="3AB87A29-AB20-4791-9EE5-CC8DC8235FDC"
             InstallPrivileges="elevated"
             Manufacturer="$(var.ProductCompany)"
             InstallerVersion="405"
             Compressed="yes"
             InstallScope="perMachine"/>
<MajorUpgrade
      Schedule="afterInstallInitialize"
      DowngradeErrorMessage="A later version of $(var.PlatformProductName)
is already installed. Setup will now exit."/>

then:
<Upgrade Id="$(var.UpgradeCode)">
  <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes"
Property="NEWERVERSIONDETECTED" />
  <UpgradeVersion Minimum="$(var.ServerBaseVersion)"
Maximum="$(var.ProductVersion)"
                      IncludeMinimum="yes" IncludeMaximum="no"
                      Property="OLDERVERSIONBEINGUPGRADED" />
</Upgrade>
where I have the following defined:
<?define ServerBaseVersion = 4.0.0.0?>
<?define ServerMaxVersion = 4.9.9.99?>
and have a productcode and upgradecode that I don't change...

customactions:

    <CustomAction Id="SetMspReinstall" Property="REINSTALLMODE" Value="amus"
/>
    <UI>
      <ProgressText Action="SetMspReinstall">CA: Setting REINSTALLMODE to
amus...</ProgressText>
    </UI>
    <CustomAction Id="NEWAPPFOUND" Error="A newer version of
$(var.ProductName) is already installed." />
    <UI>
      <ProgressText Action="NEWAPPFOUND">CA: Setting up
NEWAPPFOUND...</ProgressText>
    </UI>

<InstallExecuteSequence>
      <RemoveExistingProducts Overridable="yes" After="InstallValidate" />
      <FindRelatedProducts Before="LaunchConditions" />
      <ResolveSource Before="CostFinalize"></ResolveSource>
      <Custom Action="NEWAPPFOUND"
After="FindRelatedProducts">NEWAPPFOUND</Custom>

<Condition Message="A later version of $(var.ProductName) is already
installed. Setup will now exit.">
      NOT NEWERVERSIONDETECTED
    </Condition>

<InstallUISequence>
      <FindRelatedProducts Before="LaunchConditions" />
      <Custom Action="NEWAPPFOUND"
After="FindRelatedProducts">NEWAPPFOUND</Custom>

I then built the .MSI and installed it...

I then changed the product version to 4.0.2.30 and change the Package ID to
another GUID re built the .MSI and launched it...

Instead of a message regarding upgrade minor I get a message: "Another
version of this product is already installed. Installation of this version
cannot continue. To configure or remove the existing version of this
product, use Add/Remove Programs on the Control Panel"

What am I doing wrong? I followed the suggestions from:
http://wix.tramontana.co.hu/tutorial/upgrades-and-modularization

This is a new install so I was just making sure I had upgrades covered for
down the road :(

thanks,

STeve






--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Upgrades-NOT-working-on-a-new-install-tp7582496.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to