Anchor various GUI entities and the merge modules so the build stops being tied to...
[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 <?include Versions.wxi ?>\r
20 \r
21 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r
22   <!-- This file controls the dispaying of the GUI dialogs (both WiX and custom) -->\r
23   <Fragment>\r
24 \r
25     <WixVariable Id="WixUILicenseRtf" Value="$(var.SPBuildDirectory)\cpp-sp\msi\wix\license.rtf" />\r
26     <WixVariable Id="WixUIBannerBmp" Value="$(var.SPBuildDirectory)\cpp-sp\msi\wix\TopBanner.bmp" />\r
27     <WixVariable Id="WixUIDialogBmp" Value="$(var.SPBuildDirectory)\cpp-sp\msi\wix\Dialog.bmp" />\r
28     <WixVariable Id="WixUICostingPopupOptOut" Value="1" />    \r
29 \r
30     <!-- GUI For Shibboleth installer.  Uses the Wix packages, but linked in\r
31          blindly by looking at documentation (for sizes and dialog names) \r
32          and the generated.msi -->\r
33 \r
34     <!-- Property that Light complained for -->\r
35     <Property Id='DefaultUIFont' Value='WixUI_Font_Normal' />\r
36 \r
37     <!-- "You must set a property named WIXUI_INSTALLDIR with a value\r
38          of the ID of the directory you want the user to be able to specify\r
39          the location of." -->\r
40 \r
41     <Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />\r
42 \r
43     <UI Id='ShibbolethInstallDir' >\r
44 \r
45       <!-- "WixUI_InstallDir includes the following dialogs:" -->\r
46       <DialogRef Id='BrowseDlg' />\r
47       <DialogRef Id='DiskCostDlg' />\r
48       <DialogRef Id='InvalidDirDlg' />\r
49       <DialogRef Id='LicenseAgreementDlg' />\r
50       <DialogRef Id='WelcomeDlg' />\r
51 \r
52       <!-- "In addition, WixUI_InstallDir includes the following common\r
53            dialogs that appear in all WixUI dialog sets:" -->\r
54       <DialogRef Id='CancelDlg' />\r
55       <DialogRef Id='ErrorDlg' />\r
56       <DialogRef Id='ExitDialog' />\r
57       <DialogRef Id='FatalError' />\r
58       <DialogRef Id='FilesInUse' />\r
59       <DialogRef Id='MaintenanceTypeDlg' />\r
60       <DialogRef Id='MaintenanceWelcomeDlg' />\r
61       <DialogRef Id='MsiRMFilesInUse' />\r
62       <DialogRef Id='OutOfDiskDlg' />\r
63       <DialogRef Id='OutOfRbDiskDlg' />\r
64       <DialogRef Id='PrepareDlg' />\r
65       <DialogRef Id='ProgressDlg' />\r
66       <DialogRef Id='ResumeDlg' />\r
67       <DialogRef Id='UserExit' />\r
68       <DialogRef Id='VerifyReadyDlg' />\r
69       <DialogRef Id='WaitForCostingDlg' />\r
70 \r
71       <!-- We also define two dialogs -->\r
72       <DialogRef Id='UpdateDlgShib' />\r
73       <DialogRef Id='InstallDirDlgShib' />\r
74 \r
75       <!-- Text Styles (from Orca) -->\r
76       <TextStyle Id='WixUI_Font_Normal' FaceName='Tahoma' Size='8' />\r
77       <TextStyle Id='WixUI_Font_Bigger' FaceName='Tahoma' Size='12' />\r
78       <TextStyle Id='WixUI_Font_Title' FaceName='Tahoma' Size='9' Bold='yes'/>\r
79 \r
80       <!-- Events (from Orca\ControlEvent and from light's complaints) -->\r
81       <Publish Dialog='BrowseDlg' Control='OK' Event='DoAction' Value='WixUIValidatePath' Order='3'>1</Publish>\r
82       <Publish Dialog='BrowseDlg' Control='OK' Event='SpawnDialog' Value='InvalidDirDlg' Order='4'>\r
83         WIXUI_INSTALLDIR_VALID&lt;&gt;"1"\r
84       </Publish>\r
85 \r
86       <Publish Dialog='LicenseAgreementDlg' Control='Next' Event='NewDialog' Value='InstallDirDlgShib'>\r
87         LicenseAccepted = "1"\r
88       </Publish>\r
89 \r
90       <Publish Dialog='MaintenanceTypeDlg' Control='RepairButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>\r
91       <Publish Dialog='MaintenanceTypeDlg' Control='RemoveButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>\r
92 \r
93 \r
94       <Publish Dialog='MaintenanceWelcomeDlg' Control='Next' Event='NewDialog' Value='MaintenanceTypeDlg'>1</Publish>\r
95 \r
96       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='LicenseAgreementDlg'>\r
97         (NOT Installed) AND (NOT ALREADYINSTALLED)\r
98       </Publish>\r
99       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='UpdateDlgShib'>\r
100         (NOT Installed) AND ALREADYINSTALLED\r
101       </Publish>\r
102       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='VerifyReadyDlg'>\r
103         Installed AND PATCH\r
104       </Publish>\r
105 \r
106       <Publish Dialog='ExitDialog' Control='Finish' Event='EndDialog' Value='Return'>1</Publish>\r
107       <Publish Dialog='LicenseAgreementDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>1</Publish>\r
108       <Publish Dialog='MaintenanceTypeDlg' Control='Back' Event='NewDialog' Value='MaintenanceWelcomeDlg'>1</Publish>\r
109       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>\r
110         Installed AND PATCH\r
111       </Publish>\r
112       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='InstallDirDlgShib'>\r
113         (NOT Installed) AND (NOT ALREADYINSTALLED)\r
114       </Publish>\r
115       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='UpdateDlgShib'>\r
116         (NOT Installed) AND ALREADYINSTALLED\r
117       </Publish>\r
118       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='MaintenanceTypeDlg'>\r
119         Installed AND NOT PATCH\r
120       </Publish>\r
121 \r
122     </UI>\r
123   </Fragment>\r
124 </Wix>\r