[wix-users] How to upgrade the product without uninstalling the existing product
raj pandit
rajeev.pandit84 at gmail.com
Wed Jul 6 00:06:09 PDT 2022
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*>
More information about the wix-users
mailing list