diff options
Diffstat (limited to 'buildscripts/packaging/msi/wxs/Installer.wxs')
-rwxr-xr-x | buildscripts/packaging/msi/wxs/Installer.wxs | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/buildscripts/packaging/msi/wxs/Installer.wxs b/buildscripts/packaging/msi/wxs/Installer.wxs index fb23f4a5ccc..82bfa05f654 100755 --- a/buildscripts/packaging/msi/wxs/Installer.wxs +++ b/buildscripts/packaging/msi/wxs/Installer.wxs @@ -1,30 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <Product Id="D89E6EB1-EAA6-4C7A-A723-D14C278BB705"
+ <Product Id="$(var.ProductId)"
Name="!(wix.ProductName)"
Language="1033"
Version="$(var.MongoDBVersion)"
Manufacturer="MongoDB"
- UpgradeCode="A1A8DF55-352B-4F06-B9BD-5E9CE4345400">
+ UpgradeCode="$(var.UpgradeCode)">
- <?if $(var.Platform) = x64 ?>
- <Package InstallerVersion="200" Compressed="yes" Platform="x64"/>
- <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) (64 bit)" />
- <?else?>
- <Package InstallerVersion="200" Compressed="yes" />
- <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion)" />
- <?endif?>
+ <Package InstallerVersion="200" Compressed="yes" />
+ <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion)" />
+ <WixVariable Id="InstallFolder" Value="MongoDB $(var.MongoDBVersion) $(var.Edition)"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
- <Directory Id="MONGODB" Name="MongoDB">
- <Directory Id="INSTALLLOCATION" Name="$(var.MongoDBVersion)">
- <Directory Id="BIN" Name="bin" />
- </Directory>
+ <Directory Id="INSTALLLOCATION" Name="!(wix.InstallFolder)">
+ <Directory Id="BIN" Name="bin" />
</Directory>
</Directory>
</Directory>
-
+
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />
<WixVariable Id="WixUIBannerBmp" Value="Banner.bmp" />
|