6e4d0f92a6d95c5f6d5728c61eec4004e681710e
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-noarch.wxs
1 <?xml version='1.0' encoding='UTF-8'?>\r
2 <!-- TODO etc is uninstallable, etc\dist isn't -->\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='main.css' Guid='{EA1366EE-0FD1-42E7-9F3F-C19E6C0D12D6}'>\r
35             <File Name='main.css' KeyPath='yes'/>\r
36           </Component>\r
37           <Component Id='logo.jpg' Guid='{7F05E91A-A390-4A72-B4DC-1A4FE950B30A}'>\r
38             <File Name='logo.jpg' />\r
39           </Component>\r
40           <Component Id='CREDITS.txt' Guid='{9A792E0C-61F1-4D08-9672-BE82FFB6B7F1}'>\r
41             <File Name='CREDITS.txt' />\r
42           </Component>\r
43           <Component Id='LICENSE.txt' Guid='{404E7A3C-22C2-4A02-8DC0-7D5C0B25DED1}'>\r
44             <File Name='LICENSE.txt' />\r
45           </Component>\r
46           <Component Id='NOTICE.txt' Guid='{80619251-6754-480A-AFAA-D7398482053C}'>\r
47             <File Name='NOTICE.txt' />\r
48           </Component>\r
49           <Component Id='README.txt' Guid='{2E5A28EE-B70B-402B-8E6F-72E8EC1EEF0D}'>\r
50             <File Name='README.txt'/>\r
51           </Component>\r
52           <Component Id='RELEASE.txt' Guid='{5822AF4E-BE53-4952-B662-6BE2D3913D31}'>\r
53             <File Name='RELEASE.txt' />\r
54           </Component>\r
55         </Directory><!-- doc_shibboleth -->\r
56       </Directory><!-- doc -->\r
57       <Directory Id='etc' Name='etc' >\r
58         <Directory Id='etc_shibboleth' Name='shibboleth' \r
59                    FileSource='$(var.BuildDirectory)\cvs\2.0\cpp-sp\configs' >\r
60           <Component Id='openssl.cnf' Guid='{1F1B9F9B-6437-46F1-ACE8-8D135612336C}' Permanent='yes'>\r
61             <File KeyPath='yes' \r
62                   Source='$(var.BuildDirectory)\openssl-$(var.OpenSSLDirVersion)\apps\openssl.cnf' />\r
63           </Component>\r
64           <Component Id='upgrade.xsl' Guid='{D8D1270C-2F85-4465-8EC0-F5F30A2B3EDD}' Permanent='yes'>\r
65             <File Name='upgrade.xsl' />\r
66           </Component>\r
67           <Component Id='examplemetadata.xml' Guid='{D9852008-249D-405D-8059-5DAD307D2723}' \r
68                      Permanent='yes'>\r
69             <File Name='example-metadata.xml' />\r
70           </Component>\r
71           <Component Id='exampleshibboleth2.xml' Guid='{85415A41-2B4E-406F-9CFC-63CFC360A9C7}' \r
72                      Permanent='yes'>\r
73             <File Name='example-shibboleth2.xml' />\r
74           </Component>\r
75           <Component Id='keygen.bat' Guid='{A5BBCB8B-42B3-4402-B66D-66D2971F509F}'  Permanent='yes'>\r
76             <File Name='keygen.bat' KeyPath='yes' Source='$(var.BuildDirectory)\cvs\2.0\cpp-sp\configs\keygen.bat-wix'/>\r
77           </Component>\r
78           <Component Id='xsltproc.js' Guid='{B87F4A53-3C37-45DA-BE6F-C46790FA7C2D}'  Permanent='yes'>\r
79             <File Name='xsltproc.js' />\r
80           </Component>\r
81           <Directory Id='etc_shibboleth_dist' Name='dist' \r
82                      FileSource='$(var.BuildDirectory)\cvs\2.0\cpp-sp\configs' >\r
83             <Component Id='dist_noperm' Guid='{6AEBA525-8F52-4D14-BAEE-0292A2E214D1}'>\r
84 \r
85               <File Name='apache22.config.in' KeyPath='yes' />\r
86             </Component>\r
87             <Component Id='sslError.html' Guid='{A74BA230-C49F-4151-BBF4-AA80D554D099}'>\r
88               <File Name='sslError.html' />\r
89             </Component>\r
90             <Component Id='bindingTemplate.html' Guid='{F5A3A434-9209-43EC-9314-1F705055DDEC}'>\r
91               <File Name='bindingTemplate.html' />\r
92             </Component>\r
93             <Component Id='globalLogout.html' Guid='{E65F580D-5489-4D79-A8FC-F9FFED666FC1}'>\r
94               <File Name='globalLogout.html' />\r
95             </Component>\r
96             <Component Id='localLogout.html' Guid='{70FA3A47-A950-4074-BC13-C56D94497BD9}'>\r
97               <File Name='localLogout.html' />\r
98             </Component>\r
99             <Component Id='attributemap' Guid='{878C9456-E65F-4541-A0FA-975379EAC6B6}'>\r
100               <File Name='attribute-map.xml' />\r
101             </Component>\r
102             <Component Id='attributepolicy' Guid='{55B88F7B-E2EA-4B70-87B7-33C566B9F992}'>\r
103               <File Name='attribute-policy.xml'/>\r
104             </Component>\r
105             <Component Id='shibboleth2.xml' Guid='{E520FEDE-3F0E-47C6-9345-47223B82825A}'>\r
106               <File Name='shibboleth2.xml' />\r
107             </Component>\r
108             <Component Id='console.logger' Guid='{8AC85980-32B9-4EA2-9245-167FB1AB2570}'>\r
109               <File Name='console.logger' />\r
110             </Component>\r
111             <Component Id='discoveryTemplate.html' Guid='{A9573113-4387-46DD-A636-84482AF2C672}'>\r
112               <File Name='discoveryTemplate.html' />\r
113             </Component>\r
114             <Component Id='postTemplate.html' Guid='{5B7111E8-8E04-42F1-AB02-E47AFB7C3D28}'>\r
115               <File Name='postTemplate.html' />\r
116             </Component>\r
117             <Component Id='partialLogout.html' Guid='{E1F6208B-3C70-4632-B84C-C7D141DC4192}'>\r
118               <File Name='partialLogout.html' />\r
119             </Component>\r
120             <Component Id='protocols.xml' Guid='{B226CAAC-2D18-411A-9FBF-3FE237EBEF4D}'>\r
121               <File Name='protocols.xml' />\r
122             </Component>\r
123             <Component Id='securitypolicy.xml' Guid='{0EC04525-FCCF-4B60-8797-9B0CEC222B8C}'>\r
124               <File Name='security-policy.xml' />\r
125             </Component>\r
126             <Component Id='accessError.html' Guid='{6FAA81A0-A020-4E60-A37D-1EC4D0D5FD06}'>\r
127               <File Name='accessError.html' />\r
128             </Component>\r
129             <Component Id='apache.config' Guid='{AF4EB2B1-2489-4E39-A89E-1CA7AC2B7483}'>\r
130               <File Name='apache.config.in' />\r
131             </Component>\r
132             <Component Id='apache2.config' Guid='{85BF72A1-FBA8-4955-ACCF-ABC83B1292C9}'>\r
133               <File Name='apache2.config.in' KeyPath='yes' />\r
134             </Component>\r
135             <Component Id='metadataError.html' Guid='{8C46D04A-A943-4FA4-AFCB-9B040306C2C0}'>\r
136               <File  Name='metadataError.html' KeyPath='yes' />\r
137             </Component>\r
138             <Component Id='native.logger' Guid='{8586D4C7-E237-4C7F-BC79-DE0B06473395}'>\r
139               <File Name='native.logger.in' KeyPath='yes' />\r
140             </Component>\r
141             <Component Id='sessionError.html' Guid='{8AA240B3-DC5D-4687-B321-4F5E1BAEA820}'>\r
142               <File Name='sessionError.html' KeyPath='yes' />\r
143             </Component>\r
144             <Component Id='shibd.logger' Guid='{D8DA3D14-F779-4691-A883-4995158D2A74}'>\r
145               <File Name='shibd.logger.in' KeyPath='yes' />\r
146             </Component>\r
147           </Directory><!-- etc_shibboleth_dist -->\r
148         </Directory><!-- etc_shibboleth -->\r
149       </Directory><!-- etc_dist -->\r
150       <Directory Id='var' Name='var'>\r
151         <Directory Id='var_log' Name='log'>\r
152           <Directory Id='var_log_shibboleth' Name='shibboleth'>\r
153             <Component Id='var_log_shibboleth_folder' Guid='{2BFC84E4-634B-4D70-910A-D5640739C8C8}'>\r
154               <CreateFolder />\r
155             </Component>\r
156           </Directory><!-- var_log_shibboleth -->\r
157         </Directory><!-- var_log -->\r
158         <Directory Id='var_run' Name='run'>\r
159           <Directory Id='var_run_shibboleth' Name='shibboleth'>\r
160             <Component Id='var_run_shibboleth_folder' Guid='{35E176B1-965A-4571-B24E-E0C8E69B0459}'>\r
161               <CreateFolder />\r
162             </Component>\r
163           </Directory>\r
164         </Directory><!-- var_run -->\r
165       </Directory><!-- var -->\r
166     </DirectoryRef>\r
167 \r
168     <Binary Id='EditConfigFileSrc' SourceFile='$(var.BuildDirectory)\cvs\2.0\cpp-sp\msi\scripts\shib_edit_config_files.vbs-wix' />\r
169 \r
170     <CustomAction Id='EditConfigFiles' \r
171                   BinaryKey='EditConfigFileSrc' VBScriptCall='' Execute='deferred' Impersonate='no' />\r
172     <CustomAction Id='SetEditConfigFiles' Property='EditConfigFiles' Value='[INSTALLDIR];@;[SHIBD_PORT];@;[OUR_DLL_PATH]' />\r
173 \r
174     <CustomAction Id='KeyGen' BinaryKey='WixCA' DllEntry='CAQuietExec' Execute='deferred' Impersonate='no' />\r
175     <CustomAction Id='SetKeyGen' Property='KeyGen' Value='&quot;[INSTALLDIR]etc\shibboleth\keygen.bat&quot;' />\r
176     \r
177     <!-- TODO IIS Install (if not ALREADYINSTALLED)\r
178          TODO IIS Uninstalll (if UGRADINGPRODUCTCODE) -->\r
179     <InstallExecuteSequence>\r
180       <Custom Action='SetEditConfigFiles' Before='CostInitialize'>NOT Installed</Custom>\r
181       <Custom Action='EditConfigFiles' After='InstallFiles'>NOT Installed</Custom>\r
182       <Custom Action='SetKeyGen' Before='CostInitialize'>NOT Installed</Custom>\r
183       <!-- Run KeyGen after WriteEnvironmentStrings so the path is set -->\r
184       <Custom Action='KeyGen' After='WriteEnvironmentStrings'>NOT Installed</Custom>\r
185     </InstallExecuteSequence>\r
186     \r
187     <!-- Components\r
188          <ComponentRef Id='main.css'/>\r
189          <ComponentRef Id='logo.jpg'/>\r
190          <ComponentRef Id='CREDITS.txt'/>\r
191          <ComponentRef Id='LICENSE.txt'/>\r
192          <ComponentRef Id='NOTICE.txt'/>\r
193          <ComponentRef Id='README.txt'/>\r
194          <ComponentRef Id='RELEASE.txt'/>\r
195          \r
196          <ComponentRef Id='openssl.cnf'/>\r
197          <ComponentRef Id='upgrade.xsl'/>\r
198          <ComponentRef Id='examplemetadata.xml'/>\r
199          <ComponentRef Id='exampleshibboleth2.xml' \r
200          <ComponentRef Id='xsltproc.js'/>\r
201          <ComponentRef Id='keygen.bat'/>\r
202 \r
203          <ComponentRef Id='dist_noperm'/>\r
204          <ComponentRef Id='sslError.html'/>\r
205          <ComponentRef Id='bindingTemplate.html'/>\r
206          <ComponentRef Id='globalLogout.html'/>\r
207          <ComponentRef Id='localLogout.html'/>\r
208          <ComponentRef Id='attributemap'/>\r
209          <ComponentRef Id='attributepolicy'/>\r
210          <ComponentRef Id='shibboleth2.xml'/>\r
211          <ComponentRef Id='console.logger'/>\r
212          <ComponentRef Id='discoveryTemplate.html'/>\r
213          <ComponentRef Id='postTemplate.html'/>\r
214          <ComponentRef Id='partialLogout.html'/>\r
215          <ComponentRef Id='protocols.xml'/>\r
216          <ComponentRef Id='security-policy.xml'\r
217 \r
218          <ComponentRef Id='accessError.html'/>\r
219          <ComponentRef Id='apache.config'/>\r
220          <ComponentRef Id='apache2.config'/>\r
221          <ComponentRef Id='metadataError.html'/>\r
222          <ComponentRef Id='native.logger'/>\r
223          <ComponentRef Id='sessionError.html'/>\r
224          <ComponentRef Id='shibd.logger'/>\r
225          <ComponentRef Id='var_log_shibboleth_folder'/>\r
226          <ComponentRef Id='var_run_shibboleth_folder'/>  \r
227          -->\r
228   </Fragment>\r
229 </Wix>\r