First pass at a non encumbered GUI. Uses the Wix InstallDirDlg (as per documentation...
[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     <!-- The Banners for the dialog boxes -->\r
33     <Binary Id='WixUI_Bmp_Dialog' SourceFile='Dialog.bmp' />\r
34     <Binary Id='WixUI_Bmp_Banner' SourceFile='TopBanner.bmp' />\r
35 \r
36     <!-- Banners that WixUI needs (taken from the old installer) -->\r
37     <Binary Id='WixUI_Ico_Info' SourceFile='Info.bmp' />\r
38     <Binary Id='WixUI_Ico_Exclam' SourceFile='Info.bmp' />\r
39     <Binary Id='WixUI_Bmp_Up' SourceFile='Up.bmp' />\r
40     <Binary Id='WixUI_Bmp_New' SourceFile='New.bmp' />\r
41 \r
42     <!-- property that Light complained for -->\r
43     <Property Id='DefaultUIFont' Value='WixUI_Font_Normal' />\r
44 \r
45     <!-- "You must set a property named WIXUI_INSTALLDIR with a value\r
46          of the ID of the directory you want the user to be able to specify\r
47          the location of." -->\r
48 \r
49     <Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />\r
50 \r
51     <UI Id='ShibbolethInstallDir' >\r
52 \r
53       <!-- "WixUI_InstallDir includes the following dialogs:" -->\r
54       <DialogRef Id='BrowseDlg' />\r
55       <DialogRef Id='DiskCostDlg' />\r
56       <DialogRef Id='InstallDirDlg' />\r
57       <DialogRef Id='InvalidDirDlg' />\r
58       <DialogRef Id='LicenseAgreementDlg' />\r
59       <DialogRef Id='WelcomeDlg' />\r
60 \r
61       <!-- "In addition, WixUI_InstallDir includes the following common\r
62            dialogs that appear in all WixUI dialog sets:" -->\r
63       <DialogRef Id='CancelDlg' />\r
64       <DialogRef Id='ErrorDlg' />\r
65       <DialogRef Id='ExitDialog' />\r
66       <DialogRef Id='FatalError' />\r
67       <DialogRef Id='FilesInUse' />\r
68       <DialogRef Id='MaintenanceTypeDlg' />\r
69       <DialogRef Id='MaintenanceWelcomeDlg' />\r
70       <DialogRef Id='MsiRMFilesInUse' />\r
71       <DialogRef Id='OutOfDiskDlg' />\r
72       <DialogRef Id='OutOfRbDiskDlg' />\r
73       <DialogRef Id='PrepareDlg' />\r
74       <DialogRef Id='ProgressDlg' />\r
75       <DialogRef Id='ResumeDlg' />\r
76       <DialogRef Id='UserExit' />\r
77       <DialogRef Id='VerifyReadyDlg' />\r
78       <DialogRef Id='WaitForCostingDlg' />\r
79 \r
80       <!-- Text Styles (from Orca) -->\r
81       <TextStyle Id='WixUI_Font_Normal' FaceName='Tahoma' Size='8' />\r
82       <TextStyle Id='WixUI_Font_Bigger' FaceName='Tahoma' Size='12' />\r
83       <TextStyle Id='WixUI_Font_Title' FaceName='Tahoma' Size='9' Bold='yes'/>\r
84 \r
85       <!-- Events (from Orca\ControlEvent and from light's complaints) -->\r
86       <Publish Dialog='BrowseDlg' Control='OK' Event='DoAction' Value='WixUIValidatePath' Order='3'>1</Publish>\r
87       <Publish Dialog='BrowseDlg' Control='OK' Event='SpawnDialog' Value='InvalidDirDlg' Order='4'>\r
88         WIXUI_INSTALLDIR_VALID&lt;&gt;"1"\r
89       </Publish>\r
90 \r
91       <Publish Dialog='LicenseAgreementDlg' Control='Next' Event='NewDialog' Value='InstallDirDlg'>\r
92         LicenseAccepted = "1"\r
93       </Publish>\r
94 \r
95       <Publish Dialog='MaintenanceTypeDlg' Control='RepairButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>\r
96       <Publish Dialog='MaintenanceTypeDlg' Control='RemoveButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>\r
97 \r
98 \r
99       <Publish Dialog='MaintenanceWelcomeDlg' Control='Next' Event='NewDialog' Value='MaintenanceTypeDlg'>1</Publish>\r
100 \r
101       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='LicenseAgreementDlg'>\r
102         NOT Installed\r
103       </Publish>\r
104       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='VerifyReadyDlg'>\r
105         Installed AND PATCH\r
106       </Publish>\r
107 \r
108       <Publish Dialog='ExitDialog' Control='Finish' Event='EndDialog' Value='Return'>1</Publish>\r
109       <Publish Dialog='LicenseAgreementDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>1</Publish>\r
110       <Publish Dialog='MaintenanceTypeDlg' Control='Back' Event='NewDialog' Value='MaintenanceWelcomeDlg'>1</Publish>\r
111       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>\r
112         Installed AND PATCH\r
113       </Publish>\r
114       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='InstallDirDlg'>\r
115         NOT Installed\r
116       </Publish>\r
117       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='MaintenanceTypeDlg'>\r
118         Installed AND NOT PATCH\r
119       </Publish>\r
120 \r
121       <!-- Events we need to kill -->\r
122       <Publish Dialog='InstallDirDlg' Control='Back' Event='NewDialog' Value='LicenseAgreementDlg'>1</Publish>\r
123 \r
124       <Publish Dialog='InstallDirDlg' Control='Next' Event='NewDialog' Value='VerifyReadyDlg' Order='4'>\r
125         WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"\r
126       </Publish>\r
127 \r
128       <Publish Dialog='InstallDirDlg' Control='Next' Event='SpawnDialog' Value='InvalidDirDlg' Order='3'>\r
129         NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;"1"\r
130       </Publish>\r
131 \r
132       <Publish Dialog='InstallDirDlg' Control='Next' Event='DoAction' Value='WixUIValidatePath' Order='2'>\r
133         NOT WIXUI_DONTVALIDATEPATH\r
134       </Publish>\r
135       <Publish Dialog='InstallDirDlg' Control='Next' Event='SetTargetPath' Value='[WIXUI_INSTALLDIR]' Order='1'>1</Publish>\r
136       <Publish Dialog='InstallDirDlg' Control='ChangeFolder' Event='SpawnDialog' Value='BrowseDlg'>1</Publish>\r
137       <Publish Dialog='InstallDirDlg' Control='ChangeFolder' Event='[_BrowseProprty]' Value='[WIXUI_INSTALLDIR]' >1</Publish>\r
138 \r
139 \r
140     </UI>\r
141   </Fragment>\r
142 </Wix>\r