github.com/nuvolaris/nuv@v0.0.0-20240511174247-a74e3a52bfd8/bin/windows/templates/WixUI_HK.wxs (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <!--
     3    ~ Licensed to the Apache Software Foundation (ASF) under one
     4    ~ or more contributor license agreements.  See the NOTICE file
     5    ~ distributed with this work for additional information
     6    ~ regarding copyright ownership.  The ASF licenses this file
     7    ~ to you under the Apache License, Version 2.0 (the
     8    ~ "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,
    14    ~ software distributed under the License is distributed on an
    15    ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    16    ~ KIND, either express or implied.  See the License for the
    17    ~ specific language governing permissions and limitations
    18    ~ under the License.
    19  -->
    20  <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    21     <Fragment>
    22  
    23        <UI Id="WixUI_HK">
    24           <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
    25           <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
    26           <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
    27  
    28           <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
    29           <Property Id="WixUI_Mode" Value="InstallDir" />
    30  
    31           <DialogRef Id="BrowseDlg" />
    32           <DialogRef Id="DiskCostDlg" />
    33           <DialogRef Id="ErrorDlg" />
    34           <DialogRef Id="FatalError" />
    35           <DialogRef Id="FilesInUse" />
    36           <DialogRef Id="MsiRMFilesInUse" />
    37           <DialogRef Id="PrepareDlg" />
    38           <DialogRef Id="ProgressDlg" />
    39           <DialogRef Id="ResumeDlg" />
    40           <DialogRef Id="UserExit" />
    41  
    42           <!--   Make sure to include custom dialogs in the installer database via a DialogRef command,
    43                 especially if they are not included explicitly in the publish chain below -->
    44           <DialogRef Id="LicenseAgreementDlg_HK"/>
    45  
    46           <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath" Order="3">1</Publish>
    47           <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4"><![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
    48  
    49           <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish>
    50  
    51           <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
    52           {{if gt (.License | len) 0}}
    53           Value="LicenseAgreementDlg_HK"
    54           {{else}}
    55           Value="InstallDirDlg"
    56           {{end}}
    57           >NOT Installed</Publish>
    58           <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish>
    59  
    60           <Publish Dialog="LicenseAgreementDlg_HK" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish>
    61           <Publish Dialog="LicenseAgreementDlg_HK" Control="Next" Event="NewDialog" Value="InstallDirDlg">LicenseAccepted = "1"</Publish>
    62  
    63           <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg_HK">1</Publish>
    64           <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
    65           <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath" Order="2">NOT WIXUI_DONTVALIDATEPATH</Publish>
    66           <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3"><![CDATA[NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"]]></Publish>
    67           <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4">WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"</Publish>
    68  
    69           <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1">1</Publish>
    70           <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
    71  
    72           <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed</Publish>
    73  
    74           <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>
    75  
    76           <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
    77           <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
    78           <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish>
    79        </UI>
    80  
    81        <UIRef Id="WixUI_Common" />
    82     </Fragment>
    83  </Wix>