Merge commit '2.5.0' into moonshot-packaging-fixes
[shibboleth/sp.git] / msi / WiX / ShibbolethSP-main-x86.wxs
diff --git a/msi/WiX/ShibbolethSP-main-x86.wxs b/msi/WiX/ShibbolethSP-main-x86.wxs
new file mode 100644 (file)
index 0000000..3f8d422
--- /dev/null
@@ -0,0 +1,106 @@
+<?xml version='1.0' encoding='UTF-8'?>\r
+\r
+<!-- Licensed to the University Corporation for Advanced Internet\r
+   Development, Inc. (UCAID) under one or more contributor license\r
+   agreements.  See the NOTICE file distributed with this work for\r
+   additional information regarding copyright ownership. The UCAID\r
+   licenses this file to You under the Apache License, Version 2.0\r
+   (the 'License'); you may not use this file except in compliance\r
+   with the License.  You may obtain a copy of the License at\r
\r
+     http://www.apache.org/licenses/LICENSE-2.0\r
\r
+   Unless required by applicable law or agreed to in writing, software\r
+   distributed under the License is distributed on an 'AS IS' BASIS,\r
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
+   implied.  See the License for the specific language governing\r
+   permissions and limitations under the License.  -->\r
+\r
+<?include Versions.wxi ?>\r
+\r
+<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r
+  <Product Id='{EA2259A7-D844-475A-B473-CCE3EEA209D9}' Language='1033' \r
+           Manufacturer='Shibboleth Consortium' Name='Shibboleth Service Provider' \r
+           UpgradeCode='$(var.ShibbolethUpgradeCode)' Version='$(var.ShibbolethVersion)'>\r
+    <Package Description='Shibboleth SP (x86) V$(var.ShibbolethVersion)' Compressed='yes'\r
+           Manufacturer='Shibboleth Consortium' InstallerVersion='300'/>\r
+\r
+    <MajorUpgrade DowngradeErrorMessage='A later version of [ProductName] is already installed. Setup will now exit.'\r
+           MigrateFeatures='yes' Schedule='afterInstallExecute' />\r
+\r
+    <PropertyRef Id='SHIB_OLDVERSION'/>\r
+\r
+    <Condition Message='Shibboleth requires Windows XP SP2 or later.'>NOT VersionNT OR (VersionNT &gt;= 501)</Condition>\r
+    <Condition Message='Shibboleth requires a Windows NT-based operating system.'>NOT Version9X</Condition>\r
+    <Condition Message='You must uninstall recent versions of Shibboleth before using this installer. To uninstall, use the &quot;Change&quot; option from the Add/Remove dialog and then Remove. Attempting to uninstall directly causes the installer to hang on most systems.'>SHIB_OLDVERSION = "none"</Condition>\r
+\r
+    <Condition Message='For a 32-bit installation on a 64-bit architecture, install the 64-bit MSI but specify 32-bit defaults'>NOT VersionNT64</Condition>\r
+\r
+    <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />\r
+\r
+    <?include ShibbolethSP-properties.wxi?>\r
+\r
+    <!-- NOTE we should not use sys.BUILDARCH since that reflects the candle parameters, *NOT* the architecture -->\r
+    <Property Id='IS64BITINSTALL' Value='FALSE'/>\r
+    <Property Id='INSTALL_32BIT' Secure='yes' Value='TRUE' />\r
+\r
+    <UIRef Id='ShibbolethInstallDir'/>\r
+\r
+    <!-- Files -->\r
+    <Directory Id='TARGETDIR' Name='SourceDir'>\r
+      <!-- The test bit -->\r
+      <Directory Id='opt' Name='opt'>\r
+        <Directory Id='INSTALLDIR' Name='shibboleth-sp'/>\r
+      </Directory>\r
+\r
+      <Directory Id='ProgramFilesFolder' Name='PFiles'>\r
+        <!-- 32 bit merge modules -notionally go to "Program Files (x86)" -->\r
+        <Merge Id='CurlMergeModule_x86' Language='1033' SourceFile='MergeModules\Curl-x86.msm' DiskId='1' />\r
+        <Merge Id='FastCGIMergeModule_x86' Language='1033' SourceFile='MergeModules\FastCGI-x86.msm' DiskId='1' />\r
+        <Merge Id='Log4ShibMergeModule_x86' Language='1033' SourceFile='MergeModules\Log4Shib-x86.msm' DiskId='1' />\r
+        <Merge Id='OpenSAMLMergeModule_x86' Language='1033' SourceFile='MergeModules\OpenSAML-x86.msm' DiskId='1' />\r
+        <Merge Id='OpenSAMLMergeModule_schemas' Language='1033' SourceFile='MergeModules\OpenSAML-schemas.msm' DiskId='1' />\r
+        <Merge Id='OpenSSLMergeModule_x86' Language='1033' SourceFile='MergeModules\OpenSSL-x86.msm' DiskId='1' />\r
+        <Merge Id='ShibbolethMergeModule_x86' Language='1033' SourceFile='MergeModules\Shibboleth-x86.msm' DiskId='1' />\r
+        <Merge Id='ShibbolethMergeModule_schemas' Language='1033' SourceFile='MergeModules\Shibboleth-schemas.msm' DiskId='1' />\r
+        <Merge Id='XercesMergeModule_x86' Language='1033' SourceFile='MergeModules\Xerces-x86.msm' DiskId='1' />\r
+        <Merge Id='XmlSecMergeModule_x86' Language='1033' SourceFile='MergeModules\XmlSec-x86.msm' DiskId='1' />\r
+        <Merge Id='ZlibMergeModule_x86' Language='1033' SourceFile='MergeModules\Zlib-x86.msm' DiskId='1' />\r
+\r
+        <Merge Id='Microsoft_VC100_DebugCRT_x86' Language='1033' \r
+               SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_DebugCRT_x86.msm' DiskId='1' />\r
+        <Merge Id='Microsoft_VC100_CRT_x86' Language='1033' \r
+               SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_CRT_x86.msm' DiskId='1' />\r
+      </Directory><!--ProgramFilesFolder-->\r
+\r
+      <Component Id='SetPath' Guid='{3300B9CD-67AF-4AAC-801D-8C56E5FB4AF5}'>\r
+        <Environment Id='SetPath' Name='PATH' Action='set' Part='last' System='yes'\r
+                     Value='[ProgramFilesFolder]Shibboleth\SP\lib' />\r
+      </Component>\r
+    </Directory><!--TARGETDIR-->\r
+\r
+    <Feature Id='Shibboleth' Title='Shibboleth' Level='1' Display='hidden' \r
+             ConfigurableDirectory='INSTALLDIR'>\r
+      <MergeRef Id='CurlMergeModule_x86'/>\r
+      <MergeRef Id='FastCGIMergeModule_x86'/>\r
+      <MergeRef Id='Log4ShibMergeModule_x86'/>\r
+      <MergeRef Id='OpenSAMLMergeModule_x86'/>\r
+      <MergeRef Id='OpenSAMLMergeModule_schemas'/>\r
+      <MergeRef Id='OpenSSLMergeModule_x86'/>\r
+      <MergeRef Id='ShibbolethMergeModule_x86'/>\r
+      <MergeRef Id='ShibbolethMergeModule_schemas'/>\r
+      <MergeRef Id='XercesMergeModule_x86'/>\r
+      <MergeRef Id='XmlSecMergeModule_x86'/>\r
+      <MergeRef Id='ZlibMergeModule_x86'/>\r
+\r
+      <MergeRef Id='Microsoft_VC100_DebugCRT_x86'/>\r
+      <MergeRef Id='Microsoft_VC100_CRT_x86' />\r
+\r
+      <!-- ShibbolethSP-main-x86 -->\r
+      <ComponentRef Id='SetPath'/>\r
+\r
+      <?include ShibbolethSP-defs-x86.wxi ?>\r
+\r
+    </Feature>\r
+  </Product>\r
+</Wix>\r