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