d8d7119c67678dfb47b4bbf7d7c56c465a225cee
[shibboleth/cpp-sp.git] / msi / WiX / ShibbolethSP-gui.wxs
1 <?xml version='1.0' encoding='UTF-8'?>
2
3 <!-- Licensed to the University Corporation for Advanced Internet
4      Development, Inc. (UCAID) under one or more contributor license
5      agreements.  See the NOTICE file distributed with this work for
6      additional information regarding copyright ownership. The UCAID
7      licenses this file to You under the Apache License, Version 2.0
8      (the 'License'); you may not use this file except in compliance
9      with the License.  You may obtain a copy of the License at
10      
11      http://www.apache.org/licenses/LICENSE-2.0
12      
13      Unless required by applicable law or agreed to in writing, software
14      distributed under the License is distributed on an 'AS IS' BASIS,
15      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16      implied.  See the License for the specific language governing
17      permissions and limitations under the License.  -->
18
19 <?include Versions.wxi ?>
20
21 <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
22   <!-- This file controls the dispaying of the GUI dialogs (both WiX and custom) -->
23   <Fragment>
24
25     <WixVariable Id="WixUILicenseRtf" Value="$(var.SPBuildDirectory)\cpp-sp\msi\wix\license.rtf" />
26     <WixVariable Id="WixUIBannerBmp" Value="$(var.SPBuildDirectory)\cpp-sp\msi\wix\TopBanner.bmp" />
27     <WixVariable Id="WixUIDialogBmp" Value="$(var.SPBuildDirectory)\cpp-sp\msi\wix\Dialog.bmp" />
28     <WixVariable Id="WixUICostingPopupOptOut" Value="1" />    
29
30     <!-- GUI For Shibboleth installer.  Uses the Wix packages, but linked in
31          blindly by looking at documentation (for sizes and dialog names) 
32          and the generated.msi -->
33
34     <!-- Property that Light complained for -->
35     <Property Id='DefaultUIFont' Value='WixUI_Font_Normal' />
36
37     <!-- "You must set a property named WIXUI_INSTALLDIR with a value
38          of the ID of the directory you want the user to be able to specify
39          the location of." -->
40
41     <Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />
42
43     <UI Id='ShibbolethInstallDir' >
44
45       <!-- "WixUI_InstallDir includes the following dialogs:" -->
46       <DialogRef Id='BrowseDlg' />
47       <DialogRef Id='DiskCostDlg' />
48       <DialogRef Id='InvalidDirDlg' />
49       <DialogRef Id='LicenseAgreementDlg' />
50       <DialogRef Id='WelcomeDlg' />
51
52       <!-- "In addition, WixUI_InstallDir includes the following common
53            dialogs that appear in all WixUI dialog sets:" -->
54       <DialogRef Id='CancelDlg' />
55       <DialogRef Id='ErrorDlg' />
56       <DialogRef Id='ExitDialog' />
57       <DialogRef Id='FatalError' />
58       <DialogRef Id='FilesInUse' />
59       <DialogRef Id='MaintenanceTypeDlg' />
60       <DialogRef Id='MaintenanceWelcomeDlg' />
61       <DialogRef Id='MsiRMFilesInUse' />
62       <DialogRef Id='OutOfDiskDlg' />
63       <DialogRef Id='OutOfRbDiskDlg' />
64       <DialogRef Id='PrepareDlg' />
65       <DialogRef Id='ProgressDlg' />
66       <DialogRef Id='ResumeDlg' />
67       <DialogRef Id='UserExit' />
68       <DialogRef Id='VerifyReadyDlg' />
69       <DialogRef Id='WaitForCostingDlg' />
70
71       <!-- We also define two dialogs -->
72       <DialogRef Id='UpdateDlgShib' />
73       <DialogRef Id='InstallDirDlgShib' />
74
75       <!-- Text Styles (from Orca) -->
76       <TextStyle Id='WixUI_Font_Normal' FaceName='Tahoma' Size='8' />
77       <TextStyle Id='WixUI_Font_Bigger' FaceName='Tahoma' Size='12' />
78       <TextStyle Id='WixUI_Font_Title' FaceName='Tahoma' Size='9' Bold='yes'/>
79
80       <!-- Events (from Orca\ControlEvent and from light's complaints) -->
81       <Publish Dialog='BrowseDlg' Control='OK' Event='DoAction' Value='WixUIValidatePath' Order='3'>1</Publish>
82       <Publish Dialog='BrowseDlg' Control='OK' Event='SpawnDialog' Value='InvalidDirDlg' Order='4'>
83         WIXUI_INSTALLDIR_VALID&lt;&gt;"1"
84       </Publish>
85
86       <Publish Dialog='LicenseAgreementDlg' Control='Next' Event='NewDialog' Value='InstallDirDlgShib'>
87         LicenseAccepted = "1"
88       </Publish>
89
90       <Publish Dialog='MaintenanceTypeDlg' Control='RepairButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>
91       <Publish Dialog='MaintenanceTypeDlg' Control='RemoveButton' Event='NewDialog' Value='VerifyReadyDlg'>1</Publish>
92
93
94       <Publish Dialog='MaintenanceWelcomeDlg' Control='Next' Event='NewDialog' Value='MaintenanceTypeDlg'>1</Publish>
95
96       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='LicenseAgreementDlg'>
97         (NOT Installed) AND (NOT ALREADYINSTALLED)
98       </Publish>
99       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='UpdateDlgShib'>
100         (NOT Installed) AND ALREADYINSTALLED
101       </Publish>
102       <Publish Dialog='WelcomeDlg' Control='Next' Event='NewDialog' Value='VerifyReadyDlg'>
103         Installed AND PATCH
104       </Publish>
105
106       <Publish Dialog='ExitDialog' Control='Finish' Event='EndDialog' Value='Return'>1</Publish>
107       <Publish Dialog='LicenseAgreementDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>1</Publish>
108       <Publish Dialog='MaintenanceTypeDlg' Control='Back' Event='NewDialog' Value='MaintenanceWelcomeDlg'>1</Publish>
109       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='WelcomeDlg'>
110         Installed AND PATCH
111       </Publish>
112       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='InstallDirDlgShib'>
113         (NOT Installed) AND (NOT ALREADYINSTALLED)
114       </Publish>
115       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='UpdateDlgShib'>
116         (NOT Installed) AND ALREADYINSTALLED
117       </Publish>
118       <Publish Dialog='VerifyReadyDlg' Control='Back' Event='NewDialog' Value='MaintenanceTypeDlg'>
119         Installed AND NOT PATCH
120       </Publish>
121
122     </UI>
123   </Fragment>
124 </Wix>