summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorFyodor Sheremetyev <sheremetyev@gmail.com>2013-02-13 00:34:45 +0400
committerFyodor Sheremetyev <sheremetyev@gmail.com>2013-02-13 00:34:45 +0400
commit7fa4fc150374d6d348e6a4c7b0e513b3eb7c1da9 (patch)
tree1d7ba55e32ba9980b626d726c42049912136153d /windows
parent6315161ac2d57a5a2a4b318b489add1a7b0dcf8b (diff)
WiX: extract upgrade code into a define to avoid duplication.
Diffstat (limited to 'windows')
-rw-r--r--windows/pandoc.wxs5
1 files changed, 3 insertions, 2 deletions
diff --git a/windows/pandoc.wxs b/windows/pandoc.wxs
index 69b980ad4..71afa8eb0 100644
--- a/windows/pandoc.wxs
+++ b/windows/pandoc.wxs
@@ -1,14 +1,15 @@
<?xml version="1.0"?>
+<?define UpgradeCode = "A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" ?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*"
- UpgradeCode="A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562" Name="Pandoc $(var.VERSION)"
+ UpgradeCode="$(var.UpgradeCode)" Name="Pandoc $(var.VERSION)"
Version="$(var.VERSION)" Manufacturer="John MacFarlane"
Language="1033">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perUser"
Comments="Windows Installer Package" />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
- <Upgrade Id="A68E8EF6-ABB1-4F22-A3C5-68DFDF0AB562">
+ <Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Property='PREVIOUSVERSIONSINSTALLED'
Minimum='0.0.0.0' IncludeMinimum='yes'
Maximum="99.0.0.0" IncludeMaximum="no" />