|
| 1 | +<!-- Custom WixUI_InstallDir without License Dialog --> |
| 2 | +<!-- Based on WiX 6 WixUI_InstallDir.wxs --> |
| 3 | + |
| 4 | +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
| 5 | + <?foreach WIXUIARCH in X86;X64;A64 ?> |
| 6 | + <Fragment> |
| 7 | + <UI Id="CustomInstallDirUI_$(WIXUIARCH)"> |
| 8 | + <!-- Platform-specific actions for path validation (no license print action) --> |
| 9 | + <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" /> |
| 10 | + <Publish Dialog="InstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" /> |
| 11 | + </UI> |
| 12 | + |
| 13 | + <UIRef Id="CustomInstallDirUI" /> |
| 14 | + </Fragment> |
| 15 | + <?endforeach?> |
| 16 | + |
| 17 | + <Fragment> |
| 18 | + <UI Id="CustomInstallDirUI"> |
| 19 | + <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
| 20 | + <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
| 21 | + <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
| 22 | + |
| 23 | + <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> |
| 24 | + |
| 25 | + <DialogRef Id="BrowseDlg" /> |
| 26 | + <DialogRef Id="DiskCostDlg" /> |
| 27 | + <DialogRef Id="ErrorDlg" /> |
| 28 | + <DialogRef Id="FatalError" /> |
| 29 | + <DialogRef Id="FilesInUse" /> |
| 30 | + <DialogRef Id="MsiRMFilesInUse" /> |
| 31 | + <DialogRef Id="PrepareDlg" /> |
| 32 | + <DialogRef Id="ProgressDlg" /> |
| 33 | + <DialogRef Id="ResumeDlg" /> |
| 34 | + <DialogRef Id="UserExit" /> |
| 35 | + |
| 36 | + <!-- BrowseDlg validation --> |
| 37 | + <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"" /> |
| 38 | + |
| 39 | + <!-- ExitDialog --> |
| 40 | + <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" /> |
| 41 | + |
| 42 | + <!-- WelcomeDlg: Next goes directly to InstallDirDlg (NO LICENSE) --> |
| 43 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg" Condition="NOT Installed" /> |
| 44 | + <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" /> |
| 45 | + |
| 46 | + <!-- InstallDirDlg: Back goes to WelcomeDlg (NO LICENSE) --> |
| 47 | + <Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" /> |
| 48 | + <Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1" /> |
| 49 | + <Publish Dialog="InstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID<>"1"" /> |
| 50 | + <Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" Condition="WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID="1"" /> |
| 51 | + <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" /> |
| 52 | + <Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" /> |
| 53 | + |
| 54 | + <!-- VerifyReadyDlg --> |
| 55 | + <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="1" Condition="NOT Installed" /> |
| 56 | + <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" /> |
| 57 | + <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" Condition="Installed AND PATCH" /> |
| 58 | + |
| 59 | + <!-- Maintenance dialogs --> |
| 60 | + <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg" /> |
| 61 | + |
| 62 | + <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 63 | + <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg" /> |
| 64 | + <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg" /> |
| 65 | + |
| 66 | + <Property Id="ARPNOMODIFY" Value="1" /> |
| 67 | + </UI> |
| 68 | + |
| 69 | + <UIRef Id="WixUI_Common" /> |
| 70 | + </Fragment> |
| 71 | +</Wix> |
0 commit comments