Handle Updates a bit better
[shibboleth/sp.git] / msi / WiX / ShibbolethSP-registry-x86.wxs
1 <?xml version='1.0' encoding='UTF-8'?>\r
2 \r
3 <!-- Licensed to the University Corporation for Advanced Internet\r
4    Development, Inc. (UCAID) under one or more contributor license\r
5    agreements.  See the NOTICE file distributed with this work for\r
6    additional information regarding copyright ownership. The UCAID\r
7    licenses this file to You under the Apache License, Version 2.0\r
8    (the 'License'); you may not use this file except in compliance\r
9    with the License.  You may obtain a copy of the License at\r
10  \r
11      http://www.apache.org/licenses/LICENSE-2.0\r
12  \r
13    Unless required by applicable law or agreed to in writing, software\r
14    distributed under the License is distributed on an 'AS IS' BASIS,\r
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\r
16    implied.  See the License for the specific language governing\r
17    permissions and limitations under the License.  -->\r
18 \r
19 <?include Versions.wxi ?>\r
20 \r
21 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r
22   <!--\r
23     This is where we put all the architecture neutral bits of the\r
24     Shibboleth install.  It turns out that it may not be all the\r
25     architecture insenstive stuff since some GUIDS may have moved\r
26   -->\r
27   <Fragment>\r
28     <!-- Previous version search -->\r
29     <Property Id='SHIB_OLDVERSION' Value='none' Secure='yes'>\r
30       <RegistrySearch Id='SP2_2_1' Root='HKLM' \r
31                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2A19CDBC-E0DA-452C-8B38-1AA9DB4D579F}' \r
32                       Name='DisplayVersion' Type='raw' />\r
33       <RegistrySearch Id='SP2_4_1_32' Root='HKLM' \r
34                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A5D2DE8D-2A4A-4D74-98B5-BA448DD4DC39}' \r
35                       Name='DisplayVersion' Type='raw' />\r
36       <RegistrySearch Id='SP2_4_2_32' Root='HKLM' \r
37                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8280E58C-D290-42CD-9425-BCC0BA439649}' \r
38                       Name='DisplayVersion' Type='raw' />\r
39       <RegistrySearch Id='SP2_4_3_32' Root='HKLM' \r
40                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7B9F4513-3141-4270-B1F5-43A467235B6B}' \r
41                       Name='DisplayVersion' Type='raw' />\r
42       <RegistrySearch Id='SP2_2_0_32' Root='HKLM' \r
43                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{EAAAD296-3942-4535-B39B-81A57E94FCF7}' \r
44                       Name='DisplayVersion' Type='raw' />\r
45       <RegistrySearch Id='SP2_3_0_32' Root='HKLM' \r
46                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{790EE9BA-BB63-43D3-9080-F9AF7AC43114}' \r
47                       Name='DisplayVersion' Type='raw' />\r
48       <RegistrySearch Id='SP2_1_0_32' Root='HKLM' \r
49                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2E80BF81-72BC-4E9C-8A79-D7D7EA20AAE4}' \r
50                       Name='DisplayVersion' Type='raw' />\r
51       <RegistrySearch Id='AppReg2' Root='HKLM' \r
52                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A9A0D770-C658-4659-BC75-6F8289DDEAA3}' \r
53                       Name='DisplayVersion' Type='raw' />\r
54       <RegistrySearch Id='SP2_4_0_32' Root='HKLM' \r
55                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{56028A6A-D5A3-47C5-9494-092E1C840A8F}' \r
56                       Name='DisplayName' Type='raw' />\r
57       <RegistrySearch Id='AppReg1' Root='HKLM' \r
58                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6E62498D-162E-45AA-87C7-157308552043}' \r
59                       Name='DisplayVersion' Type='raw' />\r
60       <RegistrySearch Id='SP2_0_0_32' Root='HKLM' \r
61                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D62F990B-2A8A-442B-BF85-7FE075B2CE0C}' \r
62                       Name='DisplayVersion' Type='raw' />\r
63       <RegistrySearch Id='SP2_3_1' Root='HKLM' \r
64                       Key='SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E4FA3B6C-6347-4B58-A07D-F9E388B3944B}' \r
65                       Name='DisplayVersion' Type='raw' />\r
66     </Property>\r
67 \r
68     <Property Id='OLD_INSTALLDIR' Secure='yes'>\r
69       <RegistrySearch Id='OldInstallDir' Root='HKLM' Key='SOFTWARE\Shibboleth' \r
70                       Name='InstallDir' Type='directory' />\r
71     </Property>\r
72 \r
73     <Property Id='OLD_INSTALL_SHIBD_SERVICE' Secure='yes'>\r
74       <RegistrySearch Id='OldInstallShibd' Root='HKLM' Key='SOFTWARE\Shibboleth' \r
75                       Name='InstallShibd' Type='raw' />\r
76     </Property>\r
77 \r
78     <Property Id='OLD_INSTALL_ISAPI_FILTER' Secure='yes'>\r
79       <RegistrySearch Id='OldInstallIsapi' Root='HKLM' Key='SOFTWARE\Shibboleth' \r
80                       Name='InstallIsapi' Type='raw' />\r
81     </Property>\r
82 \r
83     <!-- non virtualized registry setting -->\r
84     <Property Id='OLD_SERVICEINSTALLED' Secure='yes'>\r
85       <RegistrySearch Id='OldServiceInstalled' Root='HKLM' Key='SYSTEM\CurrentControlSet\services\shibd_Default'\r
86                       Name='ImagePath' Type='raw' />\r
87     </Property>\r
88 \r
89     <DirectoryRef Id='bin'>\r
90       <!-- Save the Captured parameters into the registry -->\r
91       <Component Id='TargetDir' Guid='{F02FB6E5-1146-4EC5-9D59-07BA6732C4DD}' >\r
92         <RegistryValue Id='TargetDir'  Root='HKLM' Key='SOFTWARE\Shibboleth' \r
93                        Name='InstallDir' Value='[INSTALLDIR]' Type='string' KeyPath='yes' />\r
94       </Component>\r
95 \r
96       <Component Id='InstallShibd' Guid='{67ABE9AB-5ACF-44FE-8620-AEA676E88187}' >\r
97         <RegistryValue Id='InstallShibd'  Root='HKLM' Key='SOFTWARE\Shibboleth' \r
98                        Name='InstallShibd' Value='[INSTALL_SHIBD_SERVICE]' Type='string' KeyPath='yes' />\r
99       </Component>\r
100 \r
101       <Component Id='InstallIsapi' Guid='{4F81E47D-B406-42B6-A702-90ACA666075E}' >\r
102         <Condition>IISMAJORVERSION</Condition>\r
103         <RegistryValue Id='InstallIsapi'  Root='HKLM' Key='SOFTWARE\Shibboleth' \r
104                        Name='InstallIsapi' Value='[INSTALL_ISAPI_FILTER]' Type='string' KeyPath='yes' />\r
105       </Component>\r
106 \r
107       <Component Id='file_extension' Guid='{88D0BEF3-6E15-4688-8492-9FF23B6221DF}'>\r
108         <Condition>INSTALL_ISAPI_FILTER = "TRUE"</Condition>\r
109         <RegistryValue Root='HKLM' Key='SOFTWARE\Shibboleth' \r
110                        Name='FileExtension' Value='[SHIB_FILE_EXTENSION]' Type='string' KeyPath='yes' />\r
111       </Component>\r
112 \r
113       <!-- pretty icon for the "install programs" page -->\r
114       <Component Id='shib.ico' Guid='{FA0F86A1-0731-4D66-8216-BC74D231B598}'>\r
115         <File KeyPath='yes' Source='$(var.SPBuildDirectory)\cpp-sp\msi\shib.ico' />\r
116         <RegistryValue Root='HKLM' Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\[ProductCode]' \r
117                        Name='DisplayIcon' Value='[#shib.ico],0' Type='string' />\r
118       </Component>\r
119     </DirectoryRef>\r
120   </Fragment>\r
121 </Wix>\r