Finish adding patch level to package versions and strings
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-main-x86.wxs
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!-- Licensed to the University Corporation for Advanced Internet
4    Development, Inc. (UCAID) under one or more contributor license
5    agreements.  See the NOTICE file distributed with this work for
6    additional information regarding copyright ownership. The UCAID
7    licenses this file to You under the Apache License, Version 2.0
8    (the 'License'); you may not use this file except in compliance
9    with the License.  You may obtain a copy of the License at
10  
11      http://www.apache.org/licenses/LICENSE-2.0
12  
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an 'AS IS' BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16    implied.  See the License for the specific language governing
17    permissions and limitations under the License.  -->
18
19 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
20   <Product Id='$(var.ShibbolethId32)' Language='1033' 
21            Manufacturer='Shibboleth Consortium' Name='Shibboleth Service Provider' 
22            UpgradeCode='$(var.ShibbolethUpgradeCode)' Version='$(var.ShibbolethVersion).$(var.ShibbolethPatchVersion)'>
23     <Package Description='Shibboleth SP (x86) V$(var.ShibbolethVersion) Patch Level $(var.ShibbolethPatchVersion)' Compressed='yes'
24            Manufacturer='Shibboleth Consortium' InstallerVersion='300'/>
25
26     <MajorUpgrade DowngradeErrorMessage='A later version of [ProductName] is already installed. Setup will now exit.'
27            MigrateFeatures='yes' Schedule='afterInstallExecute' AllowSameVersionUpgrades='yes'/>
28
29     <PropertyRef Id='SHIB_OLDVERSION'/>
30
31     <Condition Message='Shibboleth requires Windows XP SP2 or later.'>NOT VersionNT OR (VersionNT &gt;= 501)</Condition>
32     <Condition Message='Shibboleth requires a Windows NT-based operating system.'>NOT Version9X</Condition>
33     <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>
34
35     <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>
36
37     <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
38
39     <?include ShibbolethSP-properties.wxi?>
40
41     <!-- NOTE we should not use sys.BUILDARCH since that reflects the candle parameters, *NOT* the architecture -->
42     <Property Id='IS64BITINSTALL' Value='FALSE'/>
43     <Property Id='INSTALL_32BIT' Secure='yes' Value='TRUE' />
44
45     <UIRef Id='ShibbolethInstallDir'/>
46
47     <!-- Files -->
48     <Directory Id='TARGETDIR' Name='SourceDir'>
49       <!-- The test bit -->
50       <Directory Id='opt' Name='opt'>
51         <Directory Id='INSTALLDIR' Name='shibboleth-sp'/>
52       </Directory>
53
54       <Directory Id='ProgramFilesFolder' Name='PFiles'>
55         <!-- 32 bit merge modules -notionally go to "Program Files (x86)" -->
56         <Merge Id='CurlMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Curl-x86.msm' DiskId='1' />
57         <Merge Id='FastCGIMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\FastCGI-x86.msm' DiskId='1' />
58         <Merge Id='Log4ShibMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Log4Shib-x86.msm' DiskId='1' />
59         <Merge Id='OpenSAMLMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\OpenSAML-x86.msm' DiskId='1' />
60         <Merge Id='OpenSAMLMergeModule_schemas' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\OpenSAML-schemas.msm' DiskId='1' />
61         <Merge Id='OpenSSLMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\OpenSSL-x86.msm' DiskId='1' />
62         <Merge Id='ShibbolethMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Shibboleth-x86.msm' DiskId='1' />
63         <Merge Id='ShibbolethMergeModule_schemas' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Shibboleth-schemas.msm' DiskId='1' />
64         <Merge Id='XercesMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Xerces-x86.msm' DiskId='1' />
65         <Merge Id='XmlSecMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\XmlSec-x86.msm' DiskId='1' />
66         <Merge Id='ZlibMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Zlib-x86.msm' DiskId='1' />
67
68         <Merge Id='Microsoft_VC100_DebugCRT_x86' Language='1033' 
69                SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_DebugCRT_x86.msm' DiskId='1' />
70         <Merge Id='Microsoft_VC100_CRT_x86' Language='1033' 
71                SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_CRT_x86.msm' DiskId='1' />
72       </Directory><!--ProgramFilesFolder-->
73
74       <Component Id='SetPath' Guid='{3300B9CD-67AF-4AAC-801D-8C56E5FB4AF5}'>
75         <Environment Id='SetPath' Name='PATH' Action='set' Part='last' System='yes'
76                      Value='[ProgramFilesFolder]Shibboleth\SP\lib' />
77       </Component>
78     </Directory><!--TARGETDIR-->
79
80     <Feature Id='Shibboleth' Title='Shibboleth' Level='1' Display='hidden' 
81              ConfigurableDirectory='INSTALLDIR'>
82       <MergeRef Id='CurlMergeModule_x86'/>
83       <MergeRef Id='FastCGIMergeModule_x86'/>
84       <MergeRef Id='Log4ShibMergeModule_x86'/>
85       <MergeRef Id='OpenSAMLMergeModule_x86'/>
86       <MergeRef Id='OpenSAMLMergeModule_schemas'/>
87       <MergeRef Id='OpenSSLMergeModule_x86'/>
88       <MergeRef Id='ShibbolethMergeModule_x86'/>
89       <MergeRef Id='ShibbolethMergeModule_schemas'/>
90       <MergeRef Id='XercesMergeModule_x86'/>
91       <MergeRef Id='XmlSecMergeModule_x86'/>
92       <MergeRef Id='ZlibMergeModule_x86'/>
93
94       <MergeRef Id='Microsoft_VC100_DebugCRT_x86'/>
95       <MergeRef Id='Microsoft_VC100_CRT_x86' />
96
97       <!-- ShibbolethSP-main-x86 -->
98       <ComponentRef Id='SetPath'/>
99
100       <?include ShibbolethSP-defs-x86.wxi ?>
101
102     </Feature>
103   </Product>
104 </Wix>