[wix-users] Building Wix project for sameagain
Laique Abbas
laiqueabbas_is at yahoo.com
Mon Jan 30 00:17:05 PST 2017
<Product Id="*" Name="$(var.ScreenAppName)" Language="1033" Version="$(var.Version)" Manufacturer="Afiniti" UpgradeCode="60B8EB97-EEDC-4E3A-A93B-1C83B906FABA"> <Upgrade Id="60B8EB97-EEDC-4E3A-A93B-1C83B906FABA"> <UpgradeVersion Property="REMOVEOLDVERSION" Minimum="0.0.0.0" Maximum="$(var.Version)" IncludeMaximum="yes"/> <UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND" Minimum="$(var.Version)" IncludeMinimum="yes" /> </Upgrade>
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed." Schedule="afterInstallValidate" />
I had a requirement to do versioning on 4th bit of Version too so I wrote the above WIX code. Its working perfectly but there is just one problem. I build the WIX solution and then ran the msi for version 1.0.0.1 and then building the solution again for same version and then running the msi results in installation again though it must just give an uninstall option in this case.I think its because of revision number. Well Is there a way to stop permit running the same version msi again ?
Any help would be appreciated.
Regards,Laique
More information about the wix-users
mailing list