diff options
author | Fyodor Sheremetyev <sheremetyev@gmail.com> | 2013-02-13 00:34:45 +0400 |
---|---|---|
committer | Fyodor Sheremetyev <sheremetyev@gmail.com> | 2013-02-13 00:34:45 +0400 |
commit | 7fa4fc150374d6d348e6a4c7b0e513b3eb7c1da9 (patch) | |
tree | 1d7ba55e32ba9980b626d726c42049912136153d /windows/pandoc.wxs | |
parent | 6315161ac2d57a5a2a4b318b489add1a7b0dcf8b (diff) |
WiX: extract upgrade code into a define to avoid duplication.
Diffstat (limited to 'windows/pandoc.wxs')
-rw-r--r-- | windows/pandoc.wxs | 5 |
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" />
|