diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-03-25 13:34:20 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-03-29 09:01:34 -0400 |
commit | 73b7ae2efdc3d996b1b9bda5ea6ac44fa0e81311 (patch) | |
tree | 780c7122eb244d3280e79e50c799215a28c9b23e /src/mongo/installer | |
parent | e9e806ee1f03b8328bb689ac0ce66625d16a59ee (diff) | |
download | mongo-73b7ae2efdc3d996b1b9bda5ea6ac44fa0e81311.tar.gz |
SERVER-27458 SERVER-28322 Remove outdated builders
Diffstat (limited to 'src/mongo/installer')
-rw-r--r-- | src/mongo/installer/msi/SConscript | 34 | ||||
-rw-r--r-- | src/mongo/installer/msi/wxs/Installer.wxs | 65 | ||||
-rw-r--r-- | src/mongo/installer/msi/wxs/Installer_64.wxs | 26 |
3 files changed, 13 insertions, 112 deletions
diff --git a/src/mongo/installer/msi/SConscript b/src/mongo/installer/msi/SConscript index 563779cf5f4..59a871e978a 100644 --- a/src/mongo/installer/msi/SConscript +++ b/src/mongo/installer/msi/SConscript @@ -41,43 +41,23 @@ enterpriseToolBuildDir = buildDir + r'\mongo\db\modules\enterprise' # msi_flavor - "2008R2Plus" or "" # +msi_flavor = '2008R2Plus' +msi_platform = 'x64' + # Enterprise if 'enterprise' in env['MONGO_MODULES']: msi_edition = 'Enterprise' - msi_flavor = '2008R2Plus' - msi_platform = 'x64' upgrade_code = '822C75A4-40BA-456B-91D3-C339155F0F90' # Community else: if has_option('ssl'): msi_edition = 'SSL' + upgrade_code = 'FDAA2775-060E-4C54-9C19-A84197F3070D' else: msi_edition = 'Standard' - if env['TARGET_ARCH'] == 'i386': - msi_platform = 'x86' - msi_flavor = '' - upgrade_code = '480C63DF-8F9F-46BE-BD24-F16E9E992F4D' - else: - msi_platform = 'x64' - if env.get('WIN_VERSION_MIN') == 'ws08r2' or env.get('WIN_VERSION_MIN') == 'win7': - msi_flavor = '2008R2Plus' - if msi_edition == 'SSL': - upgrade_code = 'FDAA2775-060E-4C54-9C19-A84197F3070D' - else: - upgrade_code = '7BCCBD4E-AC8A-48BC-9922-E9EBB158A060' - else: - msi_flavor = 'Legacy' - upgrade_code = '3433D310-B4A0-4E5B-BB38-34FC140F06F1' - -if 'msi' in BUILD_TARGETS and msi_edition == 'SSL' and msi_flavor != '2008R2Plus': - print "Building the MongoDB SSL MSI is only supported on Windows 2008 R2+ or Windows 7+ platforms." - print "You must add --win-version-min=ws08r2 to your scons flags" - exit(1) - -if msi_platform == 'x64': - sourcesList.append("Installer_64.wxs") -else: - sourcesList.append("Installer.wxs") + upgrade_code = '7BCCBD4E-AC8A-48BC-9922-E9EBB158A060' + +sourcesList.append("Installer_64.wxs") sources = ["wxs/" + file for file in sourcesList] objects = ["$BUILD_DIR/msi/" + file.replace(".wxs", ".wixobj") for file in sourcesList] diff --git a/src/mongo/installer/msi/wxs/Installer.wxs b/src/mongo/installer/msi/wxs/Installer.wxs deleted file mode 100644 index 634566793a6..00000000000 --- a/src/mongo/installer/msi/wxs/Installer.wxs +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> - <Product Id="$(var.ProductId)" - Name="!(wix.ProductName)" - Language="1033" - Version="$(var.MongoDBVersion)" - Manufacturer="MongoDB" - UpgradeCode="$(var.UpgradeCode)"> - - <Package InstallerVersion="200" Compressed="yes" /> - <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion)" /> - <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion)" /> - <WixVariable Id="InstallFolder" Value="$(var.MongoDBMajorVersion)"/> - - <MajorUpgrade - DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/> - - <Directory Id="TARGETDIR" Name="SourceDir"> - <Directory Id="ProgramFilesFolder"> - <Directory Id="MongoDB" Name="MongoDB"> - <Directory Id="Server" Name="Server"> - <Directory Id="INSTALLLOCATION" Name="!(wix.InstallFolder)"> - <Directory Id="BIN" Name="bin" /> - </Directory> - </Directory> - </Directory> - </Directory> - </Directory> - - <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> - <WixVariable Id="WixUIDialogBmp" Value="$(var.ProjectDir)Dialog.bmp" /> - <WixVariable Id="WixUIBannerBmp" Value="$(var.ProjectDir)Banner.bmp" /> - <WixVariable Id="WixUIInfoIco" Value="$(var.ProjectDir)Installer_Icon_32x32.ico" /> - <WixVariable Id="WixUIExclamationIco" Value="$(var.ProjectDir)Installer_Icon_32x32.ico" /> - <!-- - <WixVariable Id="WixUINewIco" Value="Installer_Icon_16x16.ico" /> - <WixVariable Id="WixUIUpIco" Value="Installer_Icon_16x16.ico" /> - More information can be found at http://wix.tramontana.co.hu/tutorial/user-interface/ui-wizardry - --> - - <Property Id="ARPPRODUCTICON" Value="MongoDBIcon" /> - <Property Id="ARPHELPLINK" Value="http://www.mongodb.org/" /> - <Property Id="ARPURLINFOABOUT" Value="http://www.mongodb.org/" /> - - <Icon Id="MongoDBIcon" SourceFile="$(var.ProjectDir)Installer_Icon_32x32.ico" /> - - <FeatureGroupRef Id="fg_MongoDBAll" /> - - <UIRef Id="MongoWixUI" /> - <UIRef Id="WixUI_ErrorProgressText" /> - <Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /> - - <Property Id="MONGO_MULTIPLE_SKU" > - <RegistrySearch Id="Mongo_Multiple_Sku" - Root="HKLM" - Key="Software\MongoDB\Server\$(var.MongoDBMajorVersion)" - Name="Edition" - Type="raw" /> - </Property> - - <Condition Message="You cannot install multple editions for the same version of MongoDB. Already installed product '[MONGO_MULTIPLE_SKU]' conflicts with this product."> - Installed OR (NOT MONGO_MULTIPLE_SKU OR MONGO_MULTIPLE_SKU = "!(wix.ProductMajorName)") - </Condition> - </Product> -</Wix> diff --git a/src/mongo/installer/msi/wxs/Installer_64.wxs b/src/mongo/installer/msi/wxs/Installer_64.wxs index 3cac7a33378..83426028ad6 100644 --- a/src/mongo/installer/msi/wxs/Installer_64.wxs +++ b/src/mongo/installer/msi/wxs/Installer_64.wxs @@ -12,28 +12,14 @@ <WixVariable Id="InstallFolder" Value="$(var.MongoDBMajorVersion)"/> <?if $(var.Edition) = Enterprise ?> - <?if $(var.Flavor) = 2008R2Plus?> - <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) $(var.Flavor) Enterprise (64 bit)" /> - <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) $(var.Flavor) Enterprise (64 bit)" /> - <?else?> - <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) Enterprise (64 bit)" /> - <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) Enterprise (64 bit)" /> - <?endif?> + <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) $(var.Flavor) Enterprise (64 bit)" /> + <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) $(var.Flavor) Enterprise (64 bit)" /> <?elseif $(var.Edition) = SSL ?> - <?if $(var.Flavor) = 2008R2Plus?> - <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) $(var.Flavor) SSL (64 bit)" /> - <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) $(var.Flavor) SSL (64 bit)" /> - <?else?> - <?error SSL edition is not supported ?> - <?endif?> + <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) $(var.Flavor) SSL (64 bit)" /> + <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) $(var.Flavor) SSL (64 bit)" /> <?else?> - <?if $(var.Flavor) = 2008R2Plus?> - <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) $(var.Flavor) (64 bit)" /> - <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) $(var.Flavor) (64 bit)" /> - <?else?> - <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) (64 bit)" /> - <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) (64 bit)" /> - <?endif?> + <WixVariable Id="ProductName" Value="MongoDB $(var.MongoDBVersion) $(var.Flavor) (64 bit)" /> + <WixVariable Id="ProductMajorName" Value="MongoDB $(var.MongoDBMajorVersion) $(var.Flavor) (64 bit)" /> <?endif?> <MajorUpgrade |