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