MyInstallDlg.wxs 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!-- From https://github.com/wixtoolset/wix/blob/ce73352b1fa1d4f9cded10a0ee410f2e786bd326/src/ext/UI/wixlib/WixUI_InstallDir.wxs -->
  2. <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. -->
  3. <!--
  4. First-time install dialog sequence:
  5. - WixUI_WelcomeDlg
  6. - WixUI_LicenseAgreementDlg
  7. - WixUI_InstallDirDlg
  8. - WixUI_VerifyReadyDlg
  9. - WixUI_DiskCostDlg
  10. Maintenance dialog sequence:
  11. - WixUI_MaintenanceWelcomeDlg
  12. - WixUI_MaintenanceTypeDlg
  13. - WixUI_InstallDirDlg
  14. - WixUI_VerifyReadyDlg
  15. Patch dialog sequence:
  16. - WixUI_WelcomeDlg
  17. - WixUI_VerifyReadyDlg
  18. -->
  19. <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
  20. <?foreach WIXUIARCH in X86;X64;A64 ?>
  21. <Fragment>
  22. <UI Id="UI_MyInstallDialog_$(WIXUIARCH)">
  23. <Publish Dialog="LicenseAgreementDlg" Control="Print" Event="DoAction" Value="WixUIPrintEula_$(WIXUIARCH)" />
  24. <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH" />
  25. <Publish Dialog="MyInstallDirDlg" Control="Next" Event="DoAction" Value="WixUIValidatePath_$(WIXUIARCH)" Order="2" Condition="NOT WIXUI_DONTVALIDATEPATH" />
  26. </UI>
  27. <UIRef Id="UI_MyInstallDialog" />
  28. </Fragment>
  29. <?endforeach?>
  30. <Fragment>
  31. <UI Id="file UI_MyInstallDialog">
  32. <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
  33. <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
  34. <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" />
  35. <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
  36. <DialogRef Id="BrowseDlg" />
  37. <DialogRef Id="DiskCostDlg" />
  38. <DialogRef Id="ErrorDlg" />
  39. <DialogRef Id="FatalError" />
  40. <DialogRef Id="FilesInUse" />
  41. <DialogRef Id="MsiRMFilesInUse" />
  42. <DialogRef Id="PrepareDlg" />
  43. <DialogRef Id="ProgressDlg" />
  44. <DialogRef Id="ResumeDlg" />
  45. <DialogRef Id="UserExit" />
  46. <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog" Value="InvalidDirDlg" Order="4" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" />
  47. <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999" />
  48. <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg" Condition="NOT Installed" />
  49. <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Condition="Installed AND PATCH" />
  50. <Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" />
  51. <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="MyInstallDirDlg" Condition="LicenseAccepted = &quot;1&quot;" />
  52. <Publish Dialog="MyInstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg" />
  53. <Publish Dialog="MyInstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="1" />
  54. <Publish Dialog="MyInstallDirDlg" Control="Next" Event="SpawnDialog" Value="InvalidDirDlg" Order="3" Condition="NOT WIXUI_DONTVALIDATEPATH AND WIXUI_INSTALLDIR_VALID&lt;&gt;&quot;1&quot;" />
  55. <Publish Dialog="MyInstallDirDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="4" Condition="WIXUI_DONTVALIDATEPATH OR WIXUI_INSTALLDIR_VALID=&quot;1&quot;" />
  56. <Publish Dialog="MyInstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="1" />
  57. <Publish Dialog="MyInstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="2" />
  58. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MyInstallDirDlg" Order="1" Condition="NOT Installed" />
  59. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2" Condition="Installed AND NOT PATCH" />
  60. <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="2" Condition="Installed AND PATCH" />
  61. <Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg" />
  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. <Property Id="ARPNOMODIFY" Value="1" />
  66. </UI>
  67. <UIRef Id="WixUI_Common" />
  68. </Fragment>
  69. </Wix>