Windows: Don't install over a newer or current installation

This commit is contained in:
Asanka C. Herath
2010-10-15 15:40:08 -04:00
parent 5962c9fe25
commit 7cef24b902
2 changed files with 6 additions and 0 deletions

View File

@@ -181,6 +181,9 @@
<Upgrade Id='81E64C32-1D09-4E3D-9EA2-EECD9C4D16CE'>
<UpgradeVersion IncludeMaximum='no' MigrateFeatures='yes' Maximum='$(var.Version)'
Property='PREVIOUSINSTALLATION' />
<UpgradeVersion Minimum='$(var.Version)' IncludeMinimum='yes'
Maximum='127.127.32767.32767'
OnlyDetect='yes' Property='EXISTINGINSTALLATION' />
</Upgrade>
<InstallExecuteSequence>
@@ -188,6 +191,8 @@
</InstallExecuteSequence>
<Condition Message='!(loc.AdminRequired)'>Installed OR Privileged</Condition>
<Condition Message='!(loc.AlreadyInstalled)'>Installed OR NOT EXISTINGINSTALLATION</Condition>
<Feature Id='feature.Main' ConfigurableDirectory='INSTALLDIR'
Title='!(loc.FeaMainTitle)'
Description='!(loc.FeaMainDesc)'

View File

@@ -9,4 +9,5 @@
<String Id='FeaMainTitle'>Heimdal</String>
<String Id='FeaMainDesc'>Command line tools and libraries for Heimdal Kerberos</String>
<String Id='AdminRequired'>Installation of this package requires elevation.</String>
<String Id='AlreadyInstalled'>A current or newer version of Heimdal is already installed on this machine. Please use the Add/Remove Programs control panel to manage the existing installation.</String>
</WixLocalization>