[wix-users] How to upgrade the product without uninstalling the existing product
Rob Mensching
rob at firegiant.com
Wed Jul 6 09:29:16 PDT 2022
Minor upgrades require command-line arguments to apply. Read:
1. https://docs.microsoft.com/en-us/windows/win32/msi/minor-upgrades
2. https://docs.microsoft.com/en-us/windows/win32/msi/applying-small-updates-by-reinstalling-the-product
- - - - - - - - - - - - - - -
I provide short answers on wix-users. Full commercial support is offered by FireGiant at http://www.firegiant.com/services
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of raj pandit via wix-users
Sent: Wednesday, July 6, 2022 12:06 AM
To: wix-users at lists.wixtoolset.org
Cc: raj pandit <rajeev.pandit84 at gmail.com>
Subject: [wix-users] How to upgrade the product without uninstalling the existing product
Hi, I am new to using wix installer.
I need to upgrade the existing version of product without uninstalling it.
I need to replace dlls and files to the location.
I got documentation which says that it is possible with minor upgrade, where we change only packageId and version no. We do not need to change the product it.
But when i am not changing the product id, i am getting below error :
"Another version of this application is already installed".
Please suggest how to implement this with wix.
I had tried this but no luck:
*<Product* Id="5d66c8ab-32bc-4045-92c2-5f88cdf7776f" Name="Management"
Language="1033" Version="2.3.1.76" UpgradeCode="$(var.UpgradeCode)"*>*
* <Package* Id="d40ad739-a00a-4fad-937a-8aaae85743da"
InstallPrivileges="elevated" InstallerVersion="200" Compressed="yes"
InstallScope="perMachine" Manufacturer="Itron" Description="Management" />
<*MajorUpgrade* DowngradeErrorMessage="A newer version of [ProductName] is already installed." AllowDowngrades="no" AllowSameVersionUpgrades="yes"
/>
<MediaTemplate EmbedCab="yes" />
<*Upgrade *Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="1.0.0" IncludeMinimum="yes"
OnlyDetect="yes" Maximum="2.3.0.76" IncludeMaximum="no"
Property="PREVIOUSFOUND" />
</*Upgrade*>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list