Use shibboleth-sp as package name for compatibility.
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-registry-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   <!--
21     This is where we put all the architecture neutral bits of the
22     Shibboleth install.  It turns out that it may not be all the
23     architecture insenstive stuff since some GUIDS may have moved
24   -->
25   <Fragment>
26
27     <!-- Previous version search -->
28     <Property Id='SHIB_OLDVERSION_64' Value='none' Secure='yes'>
29       <RegistrySearch Id='SP_2_2_1_64' Root='HKLM' 
30                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5492935D-7D97-42FE-A916-5190C3F8C403}' 
31                       Name='DisplayVersion' Type='raw' Win64='yes' />
32       <RegistrySearch Id='SP2_4_1_64' Root='HKLM' 
33                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3936DF1B-DFF2-4A02-8A2C-8AB893718397}' 
34                       Name='DisplayVersion' Type='raw' Win64='yes' />
35       <RegistrySearch Id='SP2_4_2_64' Root='HKLM' 
36                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1081BC03-B61E-4F3C-ACD9-4C8C7D3E9928}' 
37                       Name='DisplayVersion' Type='raw' Win64='yes' />
38       <RegistrySearch Id='SP_2_4_3_64' Root='HKLM' 
39                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9367CC0C-D76D-4DA8-AF51-0DD144430DD8}' 
40                       Name='DisplayVersion' Type='raw' Win64='yes' />
41       <RegistrySearch Id='SP2_3_0_64' Root='HKLM' 
42                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C7F88000-9E35-4B23-86AD-997F90B04DEE}' 
43                       Name='DisplayVersion' Type='raw' Win64='yes' />
44       <RegistrySearch Id='SP2_4_0_64' Root='HKLM' 
45                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8F0834E5-A3C8-4B7F-B8DF-30BC90331C03}' 
46                       Name='DisplayName' Type='raw' Win64='yes' />
47       <RegistrySearch Id='SP2_1_0_64' Root='HKLM' 
48                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A8C641B8-0924-4264-BEBD-8D20F8B3EB79}' 
49                       Name='DisplayVersion' Type='raw' Win64='yes' />
50       <RegistrySearch Id='SP2_2_0_64' Root='HKLM' 
51                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DDEEB7B2-A639-4513-8437-83564FECAFD3}' 
52                       Name='DisplayVersion' Type='raw' Win64='yes' />
53       <RegistrySearch Id='SP2_3_1_64' Root='HKLM' 
54                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CFF81891-E7C4-47C3-B173-87CF1B947D05}' 
55                       Name='DisplayVersion' Type='raw' Win64='yes' />
56     </Property>
57
58     <Property Id='OLD_INSTALLDIR64' Secure='yes'>
59       <RegistrySearch Id='OldInstallDir64' Root='HKLM' Key='SOFTWARE\Shibboleth' 
60                       Name='InstallDir' Type='directory' Win64='yes'/>
61     </Property>
62
63     <Property Id='OLD_INSTALL_ISAPI_FILTER64' Secure='yes'>
64       <RegistrySearch Id='OldInstallIsapi64' Root='HKLM' Key='SOFTWARE\Shibboleth' 
65                       Name='InstallIsapi' Type='raw' Win64='yes'/>
66     </Property>
67
68     <!-- 64 bit only -->
69     <Property Id='OLD_INSTALL_32BIT' Secure='yes'>
70       <RegistrySearch Id='OldInstall32Bit' Root='HKLM' Key='SOFTWARE\Shibboleth' 
71                       Name='Install32Bit' Type='raw' Win64='yes'/>
72     </Property>
73
74     <DirectoryRef Id='bin64'>
75       <!-- Save the Captured parameters into the registry -->
76       <Component Id='TargetDir64' Guid='{E89D3028-5415-4874-9CBC-806A2064C613}' Win64='yes'>
77         <RegistryValue Id='TargetDir64'  Root='HKLM' Key='SOFTWARE\Shibboleth' 
78                        Name='InstallDir' Value='[INSTALLDIR]' Type='string' KeyPath='yes' />
79       </Component>
80
81       <Component Id='Install32Bit64' Guid='{9A0181FE-6252-4C2E-8828-70281DCC3825}' Win64='yes'>
82         <RegistryValue Id='Install32Bit64'  Root='HKLM' Key='SOFTWARE\Shibboleth' 
83                        Name='Install32Bit' Value='[INSTALL_32BIT]' Type='string' KeyPath='yes' />
84       </Component>
85
86       <Component Id='InstallIsapi64' Guid='{288F97F5-E2E8-48DB-8291-B8445B77BA45}' Win64='yes'>
87         <Condition>IISMAJORVERSION</Condition>
88         <RegistryValue Id='InstallIsapi64'  Root='HKLM' Key='SOFTWARE\Shibboleth' 
89                        Name='InstallIsapi' Value='[INSTALL_ISAPI_FILTER]' Type='string' KeyPath='yes' />
90       </Component>
91
92       <Component Id='file_extension64' Guid='{F17BED16-5988-4F9E-82E0-1D4DCB69EC26}' Win64='yes'>
93         <Condition>INSTALL_ISAPI_FILTER = "TRUE"</Condition>
94         <RegistryValue Id='FileExtension64' Root='HKLM' Key='SOFTWARE\Shibboleth' 
95                        Name='FileExtension' Value='[SHIB_FILE_EXTENSION]' Type='string' KeyPath='yes' />
96       </Component>
97
98       <Component Id='shib64.ico' Guid='{AB12F477-E49D-4E52-B130-AF0913AF9EC9}' Win64='yes'  Permanent='yes'>
99         <File Id='shib64.ico' KeyPath='yes' Source='$(var.SPBuildDirectory)\cpp-sp\msi\shib.ico'/>
100         <RegistryValue Id='DisplayIcon64' Root='HKLM' Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]' 
101                        Name='DisplayIcon' Value='[#shib64.ico],0' Type='string' />
102       </Component>
103     </DirectoryRef>
104   </Fragment>
105 </Wix>