Template.wxs.in 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?include "cpack_variables.wxi"?>
  3. <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" @CPACK_WIX_CUSTOM_XMLNS_EXPANDED@
  4. RequiredVersion="3.6.3303.0">
  5. <Product Id="$(var.CPACK_WIX_PRODUCT_GUID)"
  6. Name="$(var.CPACK_PACKAGE_NAME)"
  7. Language="1033"
  8. Version="$(var.CPACK_PACKAGE_VERSION)"
  9. Manufacturer="$(var.CPACK_PACKAGE_VENDOR)"
  10. UpgradeCode="$(var.CPACK_WIX_UPGRADE_GUID)">
  11. <Package InstallerVersion="301" Compressed="yes" InstallPrivileges="elevated" InstallScope="perMachine"/>
  12. <!-- auto distribute the install-able files across N cab files that are at most 350 MB in size -->
  13. <MediaTemplate EmbedCab="$(var.CPACK_EMBED_ARTIFACTS)"
  14. MaximumUncompressedMediaSize="350"
  15. CompressionLevel="high"/>
  16. <MajorUpgrade Schedule="afterInstallInitialize"
  17. AllowSameVersionUpgrades="yes"
  18. DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit."/>
  19. <WixVariable Id="WixUILicenseRtf" Value="$(var.CPACK_WIX_LICENSE_RTF)"/>
  20. <Property Id="WIXUI_INSTALLDIR" Value="INSTALL_ROOT"/>
  21. <?ifdef CPACK_WIX_PRODUCT_ICON?>
  22. <Property Id="ARPPRODUCTICON">ProductIcon.ico</Property>
  23. <Icon Id="ProductIcon.ico" SourceFile="$(var.CPACK_WIX_PRODUCT_ICON)"/>
  24. <?endif?>
  25. <?ifdef CPACK_WIX_UI_BANNER?>
  26. <WixVariable Id="WixUIBannerBmp" Value="$(var.CPACK_WIX_UI_BANNER)"/>
  27. <?endif?>
  28. <?ifdef CPACK_WIX_UI_DIALOG?>
  29. <WixVariable Id="WixUIDialogBmp" Value="$(var.CPACK_WIX_UI_DIALOG)"/>
  30. <?endif?>
  31. <FeatureRef Id="ProductFeature">
  32. <ComponentRef Id="DesktopShortcuts"/>
  33. <ComponentRef Id="StartMenuShortcuts"/>
  34. <!-- for removing cmake and python on uninstall -->
  35. <ComponentRef Id="SanitizeInstallFolder"/>
  36. </FeatureRef>
  37. <InstallExecuteSequence>
  38. <!-- limit the actions to first time install and repairs -->
  39. <Custom Action="ExtractCMake" Before="InstallFinalize">
  40. NOT Installed Or REINSTALL
  41. </Custom>
  42. <Custom Action="MoveCMake" After="ExtractCMake">
  43. NOT Installed Or REINSTALL
  44. </Custom>
  45. <Custom Action="ConfigurePython" After="MoveCMake">
  46. NOT Installed Or REINSTALL
  47. </Custom>
  48. <!-- limit the unregister action to full uninstall -->
  49. <Custom Action="UnRegisterEngine" After="InstallInitialize">
  50. (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
  51. </Custom>
  52. </InstallExecuteSequence>
  53. <UIRef Id="$(var.CPACK_WIX_UI_REF)" />
  54. <?include "properties.wxi"?>
  55. <?include "product_fragment.wxi"?>
  56. </Product>
  57. </Wix>