Okay,
I now have:
<Product Id="$(var.ProductCode)"
Name="$(var.PlatformProductName)"
Language="1033"
Version="4.0.2.30"
Manufacturer="$(var.ProductCompany)"
UpgradeCode="$(var.UpgradeCode)">
<Package Id="*"
InstallPrivileges="elevated"
Manufacturer="$(var.ProductCompany)"
InstallerVersion="405"
Compressed="yes"
InstallScope="perMachine"/>
<!-- Upgrade info for Server -->
<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: <?define ServerBaseVersion = 4.0.0.0?> in an include file I include in
my product.wxs
<InstallExecuteSequence>
<RemoveExistingProducts Overridable="yes" After="InstallValidate" />
<FindRelatedProducts Before="LaunchConditions" />
<ResolveSource Before="CostFinalize"><![CDATA[Not Installed And Not
PATCH]]></ResolveSource>
<Condition Message="A later version of $(var.ProductName) is already installed.
Setup will now exit.">
NOT NEWERVERSIONDETECTED
</Condition>
<InstallUISequence>
<FindRelatedProducts Before="LaunchConditions" />
I create one msi with productversion of 4.0.1.25 install it, then change
productversion to 4.0.2.30 and run it and I get the same error:
"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"
Sigh,
Steve
-----Original Message-----
From: Neil Sleightholm [mailto:[email protected]]
Sent: December-20-12 1:47 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Upgrades NOT working on a new install....
You seem to have the MajorUpgrade element and also the Upgrade element,
MajorUpgrade replaces the need for manually authoring the upgrade table. Also,
I wouldn't hard code Product/@Id just use "*" and have WiX generate it for you,
likewise Package/@Id isn't required just let WiX do it.
Neil
-----Original Message-----
From: StevenOgilvie [mailto:[email protected]]
Sent: 20 December 2012 18:26
To: [email protected]
Subject: [WiX-users] Upgrades NOT working on a new install....
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users