Complete developmetn of the new GUI. Further testing needed, particularly in the...
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-gui.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 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r
20   <!-- This is where we put all executables & so & dlls which make up the SP X86 installer -->\r
21   <Fragment>\r
22 \r
23     <WixVariable Id="WixUILicenseRtf" Value="license.rtf" />\r
24     <WixVariable Id="WixUIBannerBmp" Value="TopBanner.bmp" />\r
25     <WixVariable Id="WixUIDialogBmp" Value="Dialog.bmp" />\r
26     <WixVariable Id="WixUICostingPopupOptOut" Value="1" />    \r
27 \r
28     <!-- GUI For Shibboleth installer.  Uses the Wix packages, but linked in\r
29          blindly by looking at documentation (for sizes and dialog names) \r
30          and the generated.msi -->\r
31 \r
32     <!-- Property that Light complained for -->\r
33     <Property Id='DefaultUIFont' Value='WixUI_Font_Normal' />\r
34 \r
35     <!-- "You must set a property named WIXUI_INSTALLDIR with a value\r
36          of the ID of the directory you want the user to be able to specify\r
37          the location of." -->\r
38 \r
39     <Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />\r
40 \r
41     <UI Id='ShibbolethInstallDir' >\r
42 \r
43       <!-- "WixUI_InstallDir includes the following dialogs:" -->\r
44       <DialogRef Id='BrowseDlg' />\r
45       <DialogRef Id='DiskCostDlg' />\r
46       <DialogRef Id='InstallDirDlg' />\r
47       <DialogRef Id='InvalidDirDlg' />\r
48       <DialogRef Id='LicenseAgreementDlg' />\r
49       <DialogRef Id='WelcomeDlg' />\r
50 \r
51       <!-- "In addition, WixUI_InstallDir includes the following common\r
52            dialogs that appear in all WixUI dialog sets:" -->\r
53       <DialogRef Id='CancelDlg' />\r
54       <DialogRef Id='ErrorDlg' />\r
55       <DialogRef Id='ExitDialog' />\r
56       <DialogRef Id='FatalError' />\r
57       <DialogRef Id='FilesInUse' />\r
58       <DialogRef Id='MaintenanceTypeDlg' />\r
59       <DialogRef Id='MaintenanceWelcomeDlg' />\r
60       <DialogRef Id='MsiRMFilesInUse' />\r
61       <DialogRef Id='OutOfDiskDlg' />\r
62       <DialogRef Id='OutOfRbDiskDlg' />\r
63       <DialogRef Id='PrepareDlg' />\r
64       <DialogRef Id='ProgressDlg' />\r
65       <DialogRef Id='ResumeDlg' />\r
66       <DialogRef Id='UserExit' />\r
67       <DialogRef Id='VerifyReadyDlg' />\r
68       <DialogRef Id='WaitForCostingDlg' />\r
69 \r
70       <!-- Text Styles (from Orca) -->\r
71       <TextStyle Id='WixUI_Font_Normal' FaceName='Tahoma' Size='8' />\r
72       <TextStyle Id='WixUI_Font_Bigger' FaceName='Tahoma' Size='12' />\r
73       <TextStyle Id='WixUI_Font_Title' FaceName='Tahoma' Size='9' Bold='yes'/>\r
74 \r
75       <!-- Events (from Orca\ControlEvent and from light's complaints) -->\r
76       <Publish Dialog='BrowseDlg' Control='OK' Event='DoAction' Value='WixUIValidatePath' Order='3'>1</Publish>\r
77       <Publish Dialog='BrowseDlg' Control='OK' Event='SpawnDialog' Value='InvalidDirDlg' Order='4'>\r
78         WIXUI_INSTALLDIR_VALID&lt;&gt;"1"\r
79       </Publish>\r
80 \r
81       <Publish Dialog='LicenseAgreementDlg' Control='Next' Event='NewDialog' Value='InstallDirDlgShib'>\r
82         LicenseAccepted = "1"\r
83       </Publish>\r
84 \r
85       <Publish Dialog='MaintenanceTypeDlg' Control='RepairButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>\r
86       <Publish Dialog='MaintenanceTypeDlg' Control='RemoveButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>\r
87 \r
88 \r
89       <Publish Dialog='MaintenanceWelcomeDlg' Control='Next' Event='NewDialog' Value='MaintenanceTypeDlg'>1</Publish>\r
90 \r
91       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='LicenseAgreementDlg'>\r
92         NOT Installed\r
93       </Publish>\r
94       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='VerifyReadyDlg'>\r
95         Installed AND PATCH\r
96       </Publish>\r
97 \r
98       <Publish Dialog='ExitDialog' Control='Finish' Event='EndDialog' Value='Return'>1</Publish>\r
99       <Publish Dialog='LicenseAgreementDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>1</Publish>\r
100       <Publish Dialog='MaintenanceTypeDlg' Control='Back' Event='NewDialog' Value='MaintenanceWelcomeDlg'>1</Publish>\r
101       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>\r
102         Installed AND PATCH\r
103       </Publish>\r
104       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='InstallDirDlgShib'>\r
105         NOT Installed\r
106       </Publish>\r
107       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='MaintenanceTypeDlg'>\r
108         Installed AND NOT PATCH\r
109       </Publish>\r
110 \r
111       <!-- And now the new dialog that we add.  This sets up:\r
112            INSTALLDIR\r
113            INSTALL_SHIBD_SERVICE\r
114            INSTALL_32BIT (if a 64bit machine)\r
115            INSTALL_ISAPI_FILTER (if IIS about)\r
116            SHIB_FILE_EXTENSION (if IIS about)\r
117         -->\r
118 \r
119       <Dialog Id='InstallDirDlgShib' Width='370' Height='270' Title='[ProductName] Setup'>\r
120         <!-- Stuff at the top: picture, some text, a line -->\r
121         <Control Id='TopBitMap' Type='Bitmap' X='0' Y='0' Width='370' Height='44' Text='WixUI_Bmp_Banner' />\r
122         <Control Id='TopInfo' Type='Text' X='15' Y='6' Width='150' Height='12' \r
123                  Text='{\WixUI_Font_Title}Configure Shibboleth' Transparent='yes'/>\r
124         <Control Id='TopDetailed' Type='Text' X='25' Y='24' Width='320' Height='12' \r
125                  Text='Please choose where to install the Shibboleth SP and other installation options' Transparent='yes'/>\r
126         <Control Id='TopLine' Type='Line' X='0' Y='44' Width='370' Height='1' />\r
127 \r
128         <!-- Buttons to control Shibboleth Setup -->\r
129         <Control Id='DescriptionLine1' Type='Text' X='25' Y='51' Height='12' Width='320' \r
130                  Text='The files for [ProductName] will be installed in the following folder.'/>\r
131 \r
132         <Control Id='DescriptionLine2' Type='Text' X='25' Y='70' Height='12' Width='320' \r
133                  Text='To install into a different folder, click the Browse button, and select another folder.'/>\r
134 \r
135         <Control Id='DescriptionLine3' Type='Text' X='25' Y='90' Height='12' Width='320' \r
136                  Text='You can choose not to install [ProductName] by clicking Cancel to exit the installer.' />\r
137 \r
138         <!-- Where? -->\r
139         <Control Id='Dest' Type='Edit' X='25' Y='115' Width='228' Height='17' Property='INSTALLDIR' Text='[INSTALLDIR]' />\r
140         <Control Id='ChangeFolder' Type='PushButton' X='265' Y='115' Height='17' Width='56' Text='B&amp;rowse...'>\r
141           <Publish Event='SpawnDialog' Value='BrowseDlg' Order='1'>1</Publish>\r
142           <Publish Event='[_BrowseProperty]' Value='[WIXUI_INSTALLDIR]' Order='1'>1</Publish>\r
143         </Control>\r
144 \r
145         <!-- Service? -->\r
146         <Control Id='InstallShibd' Type='CheckBox' X='25' Y='146' Height='17' Width='160' \r
147                  Property='INSTALL_SHIBD_SERVICE' CheckBoxValue='TRUE' \r
148                  Text='Install Shibd daemon' />\r
149 \r
150         <!-- 32 Bits? -->\r
151         <Control Id='Install32Bit' Type='CheckBox' X='185' Y='146' Height='17' Width='160'\r
152                  Property='INSTALL_32BIT' CheckBoxValue='TRUE' \r
153                  Text='32bit defaults'>\r
154           <Condition Action='show'>IS64BITINSTALL = "TRUE"</Condition>\r
155           <Condition Action='hide'>IS64BITINSTALL &lt;&gt; "TRUE"</Condition>\r
156         </Control>\r
157 \r
158         <!-- ISAPI? -->\r
159         <Control Id='InstallISAPI' Type='CheckBox' X='25' Y='175' Height='17' Width='160'\r
160                  Property='INSTALL_ISAPI_FILTER' CheckBoxValue='TRUE' \r
161                  Text='Install ISAPI filter and configure IIS'>\r
162           <Condition Action='show'>IISMAJORVERSION</Condition>\r
163           <Condition Action='hide'>NOT IISMAJORVERSION</Condition>\r
164         </Control>\r
165         <Control Id='FileExtensionText' Type='Text' X='185' Y='178' Height='17' Width='96'\r
166                  Text='Shibboleth File Extension'>\r
167           <Condition Action='show'>IISMAJORVERSION</Condition>\r
168           <Condition Action='hide'>NOT IISMAJORVERSION</Condition>\r
169         </Control>\r
170         <Control Id='FileExtensionEdit' Type='Edit' X='285' Y='175' Height='17' Width='50'\r
171                  Property='SHIB_FILE_EXTENSION' Text='[SHIB_FILE_EXTENSION]'>\r
172           <Condition Action='show'>IISMAJORVERSION</Condition>\r
173           <Condition Action='hide'>NOT IISMAJORVERSION</Condition>\r
174           <Condition Action='enable'>INSTALL_ISAPI_FILTER = "TRUE"</Condition>\r
175           <Condition Action='disable'>INSTALL_ISAPI_FILTER &lt;&gt; "TRUE"</Condition>\r
176         </Control>\r
177 \r
178         <!-- Stuff at the bottom: line, Back,Next, [space] Cancel -->\r
179         <Control Id='BottomLine' Type='Line' X='0' Y='234' Width='370' Height='1' />\r
180         <Control Id='Back' Type='PushButton' X='180' Y='243' Width='56' Height='17' Text='&amp;Back'>\r
181           <Publish  Event='NewDialog' Value='LicenseAgreementDlg'>1</Publish>\r
182         </Control>\r
183 \r
184         <Control Id='Next' Type='PushButton' X='236' Y='243' Width='56' Height='17' Text='&amp;Next' Default='yes'>\r
185           <Publish Event='SetTargetPath' Value='[WIXUI_INSTALLDIR]'>1</Publish>\r
186           <Publish Event='DoAction' Value='WixUIValidatePath' >\r
187             NOT WIXUI_DONTVALIDATEPATH\r
188           </Publish>\r
189           <Publish Event='SpawnDialog' Value='InvalidDirDlg' >\r
190             NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;"1"\r
191           </Publish>\r
192           <Publish Event='NewDialog' Value='VerifyReadyDlg'>\r
193             WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"\r
194           </Publish>\r
195         </Control>\r
196 \r
197         <Control Id='Cancel' Type='PushButton' X='304' Y='243' Width='56' Height='17' Text='&amp;Cancel' Cancel='yes'>\r
198           <Publish  Event='SpawnDialog' Value='CancelDlg'>1</Publish>\r
199         </Control>\r
200       </Dialog>\r
201 \r
202       <Publish Dialog='InstallDirDlg' Control='Back' Event='NewDialog' Value='LicenseAgreementDlg'>1</Publish>\r
203 \r
204       <Publish Dialog='InstallDirDlg' Control='Next' Event='NewDialog' Value='VerifyReadyDlg' Order='4'>\r
205         WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"\r
206       </Publish>\r
207 \r
208       <Publish Dialog='InstallDirDlg' Control='Next' Event='SpawnDialog' Value='InvalidDirDlg' Order='3'>\r
209         NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;"1"\r
210       </Publish>\r
211 \r
212       <Publish Dialog='InstallDirDlg' Control='Next' Event='DoAction' Value='WixUIValidatePath' Order='2'>\r
213         NOT WIXUI_DONTVALIDATEPATH\r
214       </Publish>\r
215       <Publish Dialog='InstallDirDlg' Control='Next' Event='SetTargetPath' Value='[WIXUI_INSTALLDIR]' Order='1'>1</Publish>\r
216       <Publish Dialog='InstallDirDlg' Control='ChangeFolder' Event='SpawnDialog' Value='BrowseDlg' Order='2'>1</Publish>\r
217       <Publish Dialog='InstallDirDlg' Control='ChangeFolder' Event='[_BrowseProperty]' Value='[WIXUI_INSTALLDIR]' >1</Publish>\r
218 \r
219 \r
220     </UI>\r
221   </Fragment>\r
222 </Wix>\r