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