Bootstrapper.wxs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?include "cpack_variables.wxi"?>
  3. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
  4. xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
  5. <Bundle Name="$(var.CPACK_PACKAGE_NAME)"
  6. Version="$(var.CPACK_PACKAGE_VERSION)"
  7. Manufacturer="$(var.CPACK_PACKAGE_VENDOR)"
  8. UpgradeCode="$(var.CPACK_BOOTSTRAP_UPGRADE_GUID)"
  9. IconSourceFile="$(var.CPACK_WIX_PRODUCT_ICON)"
  10. DisableModify="yes">
  11. <Variable Name="InstallFolder"
  12. Type="string"
  13. Value="[WindowsVolume]$(var.CPACK_PACKAGE_INSTALL_DIRECTORY)"
  14. bal:Overridable="yes"/>
  15. <!-- special variable name that auto maps to a WixStandardBootstrapperApplication attribute of the same name -->
  16. <Variable Name="LaunchTarget"
  17. Type="string"
  18. Value="[InstallFolder]\bin\Windows\profile\Default\o3de.exe"/>
  19. <PayloadGroup Id="Images">
  20. <Payload Id="warning.png" SourceFile="$(var.CPACK_RESOURCE_PATH)/warning.png" Compressed="yes"/>
  21. </PayloadGroup>
  22. <?ifdef CPACK_LICENSE_URL?>
  23. <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
  24. <bal:WixStandardBootstrapperApplication
  25. LicenseUrl="$(var.CPACK_LICENSE_URL)"
  26. LogoFile="$(var.CPACK_WIX_PRODUCT_LOGO)"
  27. ThemeFile="$(var.CPACK_BOOTSTRAP_THEME_FILE).xml"
  28. LocalizationFile="$(var.CPACK_BOOTSTRAP_THEME_FILE).wxl"
  29. ShowFilesInUse="yes"
  30. ShowVersion="yes" />
  31. <PayloadGroupRef Id="Images"/>
  32. </BootstrapperApplicationRef>
  33. <?else?>
  34. <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
  35. <bal:WixStandardBootstrapperApplication
  36. LicenseFile="$(var.CPACK_WIX_LICENSE_RTF)"
  37. LogoFile="$(var.CPACK_WIX_PRODUCT_LOGO)"
  38. ThemeFile="$(var.CPACK_BOOTSTRAP_THEME_FILE).xml"
  39. LocalizationFile="$(var.CPACK_BOOTSTRAP_THEME_FILE).wxl"
  40. ShowFilesInUse="yes"
  41. ShowVersion="yes" />
  42. <PayloadGroupRef Id="Images"/>
  43. </BootstrapperApplicationRef>
  44. <?endif?>
  45. <Chain>
  46. <MsiPackage Id="$(var.CPACK_PACKAGE_FILE_NAME)"
  47. SourceFile="$(var.CPACK_LOCAL_INSTALLER_DIR)/$(var.CPACK_PACKAGE_FILE_NAME).msi"
  48. DownloadUrl="$(var.CPACK_DOWNLOAD_SITE)/{2}"
  49. Vital="yes"
  50. Compressed="no">
  51. <MsiProperty Name="INSTALL_ROOT" Value="[InstallFolder]" />
  52. </MsiPackage>
  53. </Chain>
  54. </Bundle>
  55. </Wix>