Under "Add or remove programs" i can see five versions:
- ApplicationName v3.0.4.0
- ApplicationName v3.0.4.18
- ApplicationName v3.0.5.27
- ApplicationName v3.0.5.28
- ApplicationName v3.0.5.29
when trying to install ApplicationName v3.0.5.30 all previous versions are NOT deleted. Versions that stays are:
- ApplicationName v3.0.4.0
- ApplicationName v3.0.4.18
I already read all about on How to implement WiX installer upgrade?
Code that i use is:
<Product Id="*"
UpgradeCode="$(var.UpgradeCode)"
Version="$(var.Version)"
Language="1033"
Name="$(var.ProductDisplayName) (v$(var.Version))"
Manufacturer="Unknown">
<Package InstallerVersion="380" Compressed="yes"/>
<Media Id="1" Cabinet="IileServer.cab" EmbedCab="yes" />
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion
Minimum="0.0.0.0" Maximum="99.0.0.0"
Property="PREVIOUSVERSIONSINSTALLED"
IncludeMinimum="yes" IncludeMaximum="no" />
</Upgrade>
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize" />
</InstallExecuteSequence>
What i am doing wrong?
I also tryed to build version v3.0.6.0 and after install i got the same result.
Versions v3.0.5.X was removed
Versions v3.0.4.X was not uninstalled
UpgradeCode is the same for all versions, i looked with Orca image
Last UpgradeCode on image is for version 3.0.6.0