951566de0dfe4606470741509b00478aff35de9c
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-main-x64.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 <?include Versions.wxi ?>
20 <?define ShibbolethId64='{65F34F66-573F-432D-A6F4-B5E1D417A6DA}' ?>
21
22 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
23   <Product Id='$(var.ShibbolethId64)' Language='1033' 
24            Manufacturer='Shibboleth Consortium' Name='Shibboleth Service Provider' 
25            UpgradeCode='$(var.ShibbolethUpgradeCode)' Version='$(var.ShibbolethVersion)'>
26     <Package Description='Shibboleth SP (x86 and x64) V$(var.ShibbolethVersion)' Compressed='yes'
27            Manufacturer='Shibboleth Consortium' InstallerVersion='300' Platform='x64'/>
28
29     <MajorUpgrade DowngradeErrorMessage='A later version of [ProductName] is already installed. Setup will now exit.'
30            MigrateFeatures='yes' Schedule='afterInstallExecute' />
31
32     <PropertyRef Id='SHIB_OLDVERSION_64'/>
33     <PropertyRef Id='SHIB_OLDVERSION'/>
34
35     <Condition Message='Shibboleth requires Windows XP SP2 or later.'>NOT VersionNT OR (VersionNT &gt;= 501)</Condition>
36     <Condition Message='Shibboleth requires a Windows NT-based operating system.'>NOT Version9X</Condition>
37     <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") AND (SHIB_OLDVERSION_64 = "none")</Condition>
38
39     <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
40
41     <?include ShibbolethSP-properties.wxi?>
42
43     <!-- NOTE we should not use sys.BUILDARCH since that reflects the candle parameters, *NOT* the architecture -->
44     <Property Id='IS64BITINSTALL' Value='TRUE'/>
45     <Property Id='INSTALL_32BIT' Secure='yes' />
46     <UIRef Id='ShibbolethInstallDir'/>
47
48
49     <!-- Files -->
50     <Directory Id='TARGETDIR' Name='SourceDir'>
51       <!-- The test bit -->
52       <Directory Id='opt' Name='opt'>
53         <Directory Id='INSTALLDIR' Name='shibboleth-sp'/>
54       </Directory>
55
56       <Directory Id='ProgramFilesFolder' Name='PFiles'>
57         <!-- 32 bit merge modules -notionally go to "Program Files (x86)" -->
58         <Merge Id='CurlMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Curl-x86.msm' DiskId='1' />
59         <Merge Id='FastCGIMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\FastCGI-x86.msm' DiskId='1' />
60         <Merge Id='Log4ShibMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Log4Shib-x86.msm' DiskId='1' />
61         <Merge Id='OpenSAMLMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\OpenSAML-x86.msm' DiskId='1' />
62         <Merge Id='OpenSAMLMergeModule_schemas' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\OpenSAML-schemas.msm' DiskId='1' />
63         <Merge Id='OpenSSLMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\OpenSSL-x86.msm' DiskId='1' />
64         <Merge Id='ShibbolethMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Shibboleth-x86.msm' DiskId='1' />
65         <Merge Id='ShibbolethMergeModule_schemas' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Shibboleth-schemas.msm' DiskId='1' />
66         <Merge Id='XercesMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Xerces-x86.msm' DiskId='1' />
67         <Merge Id='XmlSecMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\XmlSec-x86.msm' DiskId='1' />
68         <Merge Id='ZlibMergeModule_x86' Language='1033' SourceFile='$(var.SPBuildDirectory)\cpp-sp\msi\wix\MergeModules\Zlib-x86.msm' DiskId='1' />
69
70         <Merge Id='Microsoft_VC100_DebugCRT_x86' Language='1033' 
71                SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_DebugCRT_x86.msm' DiskId='1' />
72         <Merge Id='Microsoft_VC100_CRT_x86' Language='1033' 
73                SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_CRT_x86.msm' DiskId='1' />
74       </Directory><!--ProgramFilesFolder-->
75
76       <Directory Id='ProgramFiles64Folder' Name='PFiles'>
77         <!-- 64 bit merge modules notionally go to "Program Files" -->
78         <Merge Id='CurlMergeModule_x64' Language='1033' SourceFile='MergeModules\Curl-x64.msm' DiskId='1' />
79         <Merge Id='FastCGIMergeModule_x64' Language='1033' SourceFile='MergeModules\FastCGI-x64.msm' DiskId='1' />
80         <Merge Id='Log4ShibMergeModule_x64' Language='1033' SourceFile='MergeModules\Log4Shib-x64.msm' DiskId='1' />
81         <Merge Id='OpenSAMLMergeModule_x64' Language='1033' SourceFile='MergeModules\OpenSAML-x64.msm' DiskId='1' />
82         <Merge Id='OpenSSLMergeModule_x64' Language='1033' SourceFile='MergeModules\OpenSSL-x64.msm' DiskId='1' />
83         <Merge Id='ShibbolethMergeModule_x64' Language='1033' SourceFile='MergeModules\Shibboleth-x64.msm' DiskId='1' />
84         <Merge Id='XercesMergeModule_x64' Language='1033' SourceFile='MergeModules\Xerces-x64.msm' DiskId='1' />
85         <Merge Id='XmlSecMergeModule_x64' Language='1033' SourceFile='MergeModules\XmlSec-x64.msm' DiskId='1' />
86         <Merge Id='ZlibMergeModule_x64' Language='1033' SourceFile='MergeModules\Zlib-x64.msm' DiskId='1' />
87
88         <Merge Id='Microsoft_VC100_DebugCRT_x64' Language='1033' 
89                SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_DebugCRT_x64.msm' DiskId='1' />
90         <Merge Id='Microsoft_VC100_CRT_x64' Language='1033' 
91                SourceFile='C:\Program Files (x86)\Common Files\Merge Modules\Microsoft_VC100_CRT_x64.msm' DiskId='1' />
92       </Directory><!--ProgramFiles64Folder-->
93
94       <!-- PATH -->
95       <Component Id='SetPath64' Guid='{D3BF9EF4-843A-4D48-BC6C-DC24B063FC35}' Win64='yes'>
96         <Environment Id='SetPath64' Name='PATH' Action='set' Part='last' System='yes'
97                      Value='[ProgramFiles64Folder]Shibboleth\SP\lib' />
98       </Component>
99       <Component Id='SetPath' Guid='{0E8BD571-3A26-4F61-979E-B5807A28634A}'>
100         <Environment Id='SetPath' Name='PATH' Action='set' Part='last'  System='yes'
101                      Value='[ProgramFilesFolder]Shibboleth\SP\lib' />
102       </Component>
103     </Directory><!--TARGETDIR-->
104
105     <DirectoryRef Id='etc_shibboleth' FileSource='$(var.SPBuildDirectory)\cpp-sp\configs'>
106       <Component Id='SetService64' Guid='{8DE75314-84B5-4BD1-ABD2-9FC1DEE399DC}'>
107         <File KeyPath='yes' Name='SetService64.bat' />
108       </Component>
109       <Component Id='SetService32' Guid='{3332A486-845E-4EE4-975F-3D75757EB941}'>
110         <File KeyPath='yes' Name='SetService32.bat' />
111       </Component>
112     </DirectoryRef><!-- etc_shibboleth -->
113
114     <Feature Id='Shibboleth' Title='Shibboleth' Level='1' Display='hidden' ConfigurableDirectory='INSTALLDIR'>
115       <MergeRef Id='CurlMergeModule_x86'/>
116       <MergeRef Id='FastCGIMergeModule_x86'/>
117       <MergeRef Id='Log4ShibMergeModule_x86'/>
118       <MergeRef Id='OpenSAMLMergeModule_x86'/>
119       <MergeRef Id='OpenSAMLMergeModule_schemas'/>
120       <MergeRef Id='OpenSSLMergeModule_x86'/>
121       <MergeRef Id='ShibbolethMergeModule_x86'/>
122       <MergeRef Id='ShibbolethMergeModule_schemas'/>
123       <MergeRef Id='XercesMergeModule_x86'/>
124       <MergeRef Id='XmlSecMergeModule_x86'/>
125       <MergeRef Id='ZlibMergeModule_x86'/>
126
127       <MergeRef Id='Microsoft_VC100_DebugCRT_x86'/>
128       <MergeRef Id='Microsoft_VC100_CRT_x86' />
129
130       <MergeRef Id='CurlMergeModule_x64'/>
131       <MergeRef Id='FastCGIMergeModule_x64'/>
132       <MergeRef Id='Log4ShibMergeModule_x64'/>
133       <MergeRef Id='OpenSAMLMergeModule_x64'/>
134       <MergeRef Id='OpenSSLMergeModule_x64'/>
135       <MergeRef Id='ShibbolethMergeModule_x64'/>
136       <MergeRef Id='XercesMergeModule_x64'/>
137       <MergeRef Id='XmlSecMergeModule_x64'/>
138       <MergeRef Id='ZlibMergeModule_x64'/>
139
140       <MergeRef Id='Microsoft_VC100_DebugCRT_x64'/>
141       <MergeRef Id='Microsoft_VC100_CRT_x64' />
142
143       <!-- ShibbolethSP-exe-x64-->
144
145       <ComponentRef Id='resolvertest64.exe'/>
146       <ComponentRef Id='mdquery64.exe'/>
147       <ComponentRef Id='resolvertest64.exe_debug'/>
148       <ComponentRef Id='mdquery64.exe_debug' />
149
150       <ComponentRef Id='adfs64.so'/>
151       <ComponentRef Id='adfs_lite64.so'/>
152       <ComponentRef Id='isapi_shib64.dll'/>
153       <ComponentRef Id='mod_shib_2264.so'/>
154       <ComponentRef Id='mod_shib_2464.so'/>
155       <ComponentRef Id='odbc_store64.so'/>
156       <ComponentRef Id='plugins64.so'/>
157       <ComponentRef Id='plugins_lite64.so'/>
158       <ComponentRef Id='shibauthorizer64.exe'/>
159       <ComponentRef Id='shibresponder64.exe'/>
160
161       <ComponentRef Id='adfs64.so_debug'/>
162       <ComponentRef Id='adfs_lite64.so_debug'/>
163       <ComponentRef Id='isapi_shib64.dll_debug'/>
164       <ComponentRef Id='mod_shib_2264.so_debug'/>
165       <ComponentRef Id='mod_shib_2464.so_debug'/>
166       <ComponentRef Id='odbc_store64.so_debug'/>
167       <ComponentRef Id='plugins64.so_debug'/>
168       <ComponentRef Id='plugins_lite64.so_debug'/>
169       <ComponentRef Id='shibauthorizer64.exe_debug'/>
170       <ComponentRef Id='shibresponder64.exe_debug'/>
171
172       <ComponentRef Id='shibd64.exe'/>
173       <ComponentRef Id='shibd64.exe_debug'/>
174
175       <!-- ShibbolethSP-registry-x64 -->
176       <ComponentRef Id='TargetDir64'/>
177       <ComponentRef Id='InstallIsapi64'/>
178       <ComponentRef Id='Install32Bit64'/>
179       <ComponentRef Id='file_extension64'/>
180       <ComponentRef Id='shib64.ico' />
181
182       <!-- ShibbolethSP-main-x64 -->
183       <ComponentRef Id='SetPath'/>
184       <ComponentRef Id='SetPath64'/>
185
186       <ComponentRef Id='SetService64' />
187       <ComponentRef Id='SetService32' />
188
189       <?include ShibbolethSP-defs-x86.wxi ?>
190
191     </Feature>
192   </Product>
193 </Wix>