3ff4d54cff0b26f2bc3e889643103b1878fcb301
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-noarch.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   <!-- This is where we put all the architecture neutral bits of the\r
23        Shibboleth install.  It turns out that it may not be all the\r
24        architecture insenstive stuff since some GUIDS may have moved\r
25        -->\r
26   <Fragment>\r
27     <!-- Files First -->\r
28     <!-- Configuration, licenses and documentation -->\r
29 \r
30     <DirectoryRef Id='INSTALLDIR'>\r
31       <Directory Id='doc' Name='doc' >\r
32         <Directory Id='doc_shibboleth' Name='shibboleth' \r
33                    FileSource='$(var.BuildDirectory)\cvs\2.0\cpp-sp\doc' >\r
34           <Component Id='doc_shibboleth' Guid='{8239E994-8295-4E26-8708-DDF240B486BF}'>\r
35             <File Name='main.css' KeyPath='yes'/>\r
36             <File Name='logo.jpg' />\r
37             <File Name='CREDITS.txt' />\r
38             <File Name='LICENSE.txt' />\r
39             <File Name='NOTICE.txt' />\r
40             <File Name='README.txt'/>\r
41             <File Name='RELEASE.txt' />\r
42           </Component>\r
43         </Directory><!-- doc_shibboleth -->\r
44       </Directory><!-- doc -->\r
45       <Directory Id='etc' Name='etc' >\r
46         <Directory Id='etc_shibboleth' Name='shibboleth' \r
47                    FileSource='$(var.BuildDirectory)\cvs\2.0\cpp-sp\configs' >\r
48           <Component Id='etc_shibboleth_perm' Guid='{1F1B9F9B-6437-46F1-ACE8-8D135612336C}' Permanent='yes'>\r
49             <File KeyPath='yes' \r
50                   Source='$(var.BuildDirectory)\openssl-$(var.OpenSSLDirVersion)\apps\openssl.cnf' />\r
51             <File Name='upgrade.xsl' />\r
52             <File Name='example-metadata.xml' />\r
53             <File Name='example-shibboleth2.xml' />\r
54           </Component>\r
55           <Component Id='etc_shibboleth_nonperm' Guid='{A5BBCB8B-42B3-4402-B66D-66D2971F509F}'>\r
56             <File Name='keygen.bat' KeyPath='yes' Source='$(var.BuildDirectory)\cvs\2.0\cpp-sp\configs\keygen.bat-wix'/>\r
57             <File Name='xsltproc.js' />\r
58           </Component>\r
59           <Directory Id='etc_shibboleth_dist' Name='dist' \r
60                      FileSource='$(var.BuildDirectory)\cvs\2.0\cpp-sp\configs' >\r
61             <Component Id='dist_noperm' Guid='{6AEBA525-8F52-4D14-BAEE-0292A2E214D1}'>\r
62               <!-- Note that the dir creation here is an accident caused by the inhertited Installer -->\r
63               <CreateFolder Directory='var_run_shibboleth' />\r
64               <File Name='apache22.config.in' KeyPath='yes' />\r
65               <File Name='sslError.html' />\r
66               <File Name='bindingTemplate.html' />\r
67               <File Name='globalLogout.html' />\r
68               <File Name='localLogout.html' />\r
69               <File Name='attribute-map.xml' />\r
70               <File Name='attribute-policy.xml'/>\r
71               <File Name='shibboleth2.xml' />\r
72               <File Name='console.logger' />\r
73               <File Name='discoveryTemplate.html' />\r
74               <File Name='postTemplate.html' />\r
75               <File Name='partialLogout.html' />\r
76               <File Name='protocols.xml' />\r
77               <File Name='security-policy.xml' />\r
78             </Component>\r
79             <Component Id='accessError.html' Guid='{6FAA81A0-A020-4E60-A37D-1EC4D0D5FD06}' Permanent='yes'>\r
80               <File Name='accessError.html' />\r
81             </Component>\r
82             <Component Id='apache.config' Guid='{AF4EB2B1-2489-4E39-A89E-1CA7AC2B7483}' Permanent='yes'>\r
83               <File Name='apache.config.in' />\r
84             </Component>\r
85             <Component Id='apache2.config' Guid='{85BF72A1-FBA8-4955-ACCF-ABC83B1292C9}' Permanent='yes'>\r
86               <File Name='apache2.config.in' KeyPath='yes' />\r
87             </Component>\r
88             <Component Id='metadataError.html' Guid='{8C46D04A-A943-4FA4-AFCB-9B040306C2C0}' Permanent='yes'>\r
89               <File  Name='metadataError.html' KeyPath='yes' />\r
90             </Component>\r
91             <Component Id='native.logger' Guid='{8586D4C7-E237-4C7F-BC79-DE0B06473395}' Permanent='yes'>\r
92               <File Name='native.logger.in' KeyPath='yes' />\r
93             </Component>\r
94             <Component Id='sessionError.html' Guid='{8AA240B3-DC5D-4687-B321-4F5E1BAEA820}' Permanent='yes'>\r
95               <File Name='sessionError.html' KeyPath='yes' />\r
96             </Component>\r
97             <Component Id='shibd.logger' Guid='{D8DA3D14-F779-4691-A883-4995158D2A74}' Permanent='yes'>\r
98               <File Name='shibd.logger.in' KeyPath='yes' />\r
99             </Component>\r
100           </Directory><!-- etc_shibboleth_dist -->\r
101         </Directory><!-- etc_shibboleth -->\r
102       </Directory><!-- etc_dist -->\r
103       <Directory Id='var' Name='var'>\r
104         <Directory Id='var_log' Name='log'>\r
105           <Directory Id='var_log_shibboleth' Name='shibboleth'>\r
106             <Component Id='var_log_shibboleth_folder' Guid='{2BFC84E4-634B-4D70-910A-D5640739C8C8}' KeyPath='yes'>\r
107               <CreateFolder />\r
108             </Component>\r
109           </Directory><!-- var_log_shibboleth -->\r
110         </Directory><!-- var_log -->\r
111         <Directory Id='var_run' Name='run'>\r
112           <Directory Id='var_run_shibboleth' Name='shibboleth' />\r
113         </Directory><!-- var_run -->\r
114       </Directory><!-- var -->\r
115       <!-- Schemas -->\r
116       <Directory Id='CommonAppDataFolder' Name='CommonFiles' >\r
117         <Directory Id='common_shibboleth' Name='Shibboleth' >\r
118           <Directory Id='common_sp' Name='SP' >\r
119             <Directory Id='common_doc' Name='doc' \r
120                        FileSource='$(var.BuildDirectory)\cvs\2.0\cpp-sp\schemas' >\r
121               <Component Id='share_xml_shibboleth' Guid='{69FCD385-B31D-43FB-B8A7-6F8D30391661}'>\r
122                 <File Name='shibboleth-metadata-1.0.xsd' KeyPath='yes' />\r
123                 <File Name='catalog.xml' Source='$(var.BuildDirectory)\cvs\2.0\cpp-sp\schemas\catalog.xml.in' />\r
124                 <File Name='shibboleth-2.0-attribute-map.xsd' />\r
125                 <File Name='shibboleth-2.0-afp.xsd' />\r
126                 <File Name='shibboleth-2.0-afp-mf-saml.xsd' />\r
127                 <File Name='WS-Trust.xsd' />\r
128                 <File Name='shibboleth-2.0-sp-notify.xsd' />\r
129                 <File Name='shibboleth-2.0-native-sp-config.xsd' />\r
130                 <File Name='shibboleth-2.0-afp-mf-basic.xsd' />\r
131                 <File Name='shibboleth-2.0-native-sp-protocols.xsd' />\r
132               </Component>\r
133               <Component Id='share_xml_shibboleth_xsd' Guid='{8C5B6416-5BE3-4D4D-BF8B-B677365DA58C}'>\r
134                 <File Name='shibboleth.xsd' KeyPath='yes' />\r
135               </Component>\r
136             </Directory><!--common_doc-->\r
137           </Directory><!--common_sp-->\r
138         </Directory><!--common_shibboleth-->\r
139       </Directory><!--CommonAppDataFolder-->\r
140     </DirectoryRef>\r
141 \r
142     <!-- The actions to perform after the files have been copied -->\r
143     <Binary Id='EditConfigFileSrc' SourceFile='$(var.BuildDirectory)\cvs\2.0\cpp-sp\msi\scripts\shib_edit_config_files.vbs-wix' />\r
144     <Binary Id='KeyGenSrc' SourceFile='$(var.BuildDirectory)\cvs\2.0\cpp-sp\msi\scripts\shib_keygen.vbs' />\r
145     <CustomAction Id='EditConfigFiles' \r
146                   BinaryKey='EditConfigFileSrc' VBScriptCall='' Execute='deferred' Impersonate='no' />\r
147     <CustomAction Id='SetEditConfigFiles' Property='EditConfigFiles' Value='[INSTALLDIR];@;[SHIBD_PORT];@;[ProgramFilesFolder]' />\r
148     <CustomAction Id='KeyGen' BinaryKey='KeyGenSrc' VBScriptCall='' Execute='deferred' Impersonate='no' />\r
149     <CustomAction Id='SetKeyGen' Property='KeyGen' Value='[INSTALLDIR]' />\r
150     <InstallExecuteSequence>\r
151       <Custom Action='SetEditConfigFiles' Before='CostInitialize'>NOT Installed</Custom>\r
152       <Custom Action='EditConfigFiles' After='InstallFiles'>NOT Installed</Custom>\r
153       <Custom Action='SetKeyGen' Before='CostInitialize'>NOT Installed</Custom>\r
154       <Custom Action='KeyGen' After='EditConfigFiles'>NOT Installed</Custom>\r
155     </InstallExecuteSequence>\r
156 \r
157     <!-- Components\r
158 \r
159          <ComponentRef Id='doc_shibboleth'/>\r
160          <ComponentRef Id='etc_shibboleth_perm'/>\r
161          <ComponentRef Id='etc_shibboleth_nonperm'/>\r
162          <ComponentRef Id='dist_noperm'/>\r
163          <ComponentRef Id='accessError.html'/>\r
164          <ComponentRef Id='apache.config'/>\r
165          <ComponentRef Id='apache2.config'/>\r
166          <ComponentRef Id='metadataError.html'/>\r
167          <ComponentRef Id='native.logger'/>\r
168          <ComponentRef Id='sessionError.html'/>\r
169          <ComponentRef Id='shibd.logger'/>\r
170          <ComponentRef Id='var_log_shibboleth_folder'/>\r
171          <ComponentRef Id='share_xml_shibboleth'/>\r
172          <ComponentRef Id='share_xml_shibboleth_xsd'/>\r
173          -->\r
174 \r
175   </Fragment>\r
176 </Wix>\r