Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hacker <dd0t@users.sourceforge.net>2014-09-26 01:49:57 +0400
committerStefan Hacker <dd0t@users.sourceforge.net>2014-09-27 02:02:34 +0400
commite7282052993602ae5e0a1d3a8485c17adbf89d50 (patch)
tree4e189fd50cda27882c5cdca4376af72f30eea01f /installer
parentfcc2a39032f746a17946694667c01e906a36152c (diff)
Do not allow installing x86 and x64 side by side.
Previous setups used a different upgrade code for x64 installs meaning existing x86 installs wouldn't be replaced. As we don't actually want to support having x64 and x86 versions installed alongside each other this patch makes the x64 install use the same upgrade code as x86. Also it makes the setup detect and upgrade x64 installs which used the old upgrade code allowing smooth future updates for existing users of these snapshots.
Diffstat (limited to 'installer')
-rw-r--r--installer/Product.wxs6
-rw-r--r--installer/Settings.wxi5
2 files changed, 9 insertions, 2 deletions
diff --git a/installer/Product.wxs b/installer/Product.wxs
index af6bea878..ff702a983 100644
--- a/installer/Product.wxs
+++ b/installer/Product.wxs
@@ -31,6 +31,12 @@
<MajorUpgrade AllowDowngrades='no' AllowSameVersionUpgrades='yes' MigrateFeatures='yes' Schedule='afterInstallExecute' DowngradeErrorMessage='A later version of [ProductName] is already installed.' />
+ <Upgrade Id="$(var.Old64BitProductUpgradeCode)">
+ <!-- 64 bit installers had a seperate upgrade code during the beta. As we do not actually want both versions
+ to be installed at the same time this allows detecting the old 64 bit version and upgrading from it -->
+ <UpgradeVersion Minimum="1.3.0" IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="yes" OnlyDetect="no" Property="REMOVEOLD64BITPRODUCT" />
+ </Upgrade>
+
<Media Id="1" Cabinet="$(var.ProductName).cab" EmbedCab="yes" CompressionLevel="high" />
<UIRef Id="MumbleUI_FeatureTree" />
diff --git a/installer/Settings.wxi b/installer/Settings.wxi
index 620d75e96..af441eca1 100644
--- a/installer/Settings.wxi
+++ b/installer/Settings.wxi
@@ -4,11 +4,12 @@
<?define ProductManufacturer = "The Mumble team" ?>
<?define ProductVersion = "1.3.0" ?>
+ <?define ProductUpgradeCode = B0EEFCC7-8A9c-4471-AB10-CBD35BE3161D ?>
+ <?define Old64BitProductUpgradeCode = E028BDFC-3FE2-4BEE-A33B-EB9C80611555 ?>
+
<?if $(sys.BUILDARCH) = "x86" ?>
- <?define ProductUpgradeCode = B0EEFCC7-8A9c-4471-AB10-CBD35BE3161D ?>
<?define ArchSpecificProgramFilesFolderId = "ProgramFilesFolder" ?>
<?elseif $(sys.BUILDARCH) = "x64" ?>
- <?define ProductUpgradeCode = E028BDFC-3FE2-4BEE-A33B-EB9C80611555 ?>
<?define ArchSpecificProgramFilesFolderId = "ProgramFiles64Folder" ?>
<?else?>
<?error Unsupported build architecture: $(sys.BUILDARCH) ?>