Shortcuts.wxs 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version='1.0' encoding='windows-1252'?>
  2. <?include "cpack_variables.wxi"?>
  3. <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
  4. <Fragment>
  5. <DirectoryRef Id="TARGETDIR">
  6. <Directory Id="ProgramMenuFolder">
  7. <Directory Id="ApplicationProgramsFolder" Name="$(var.CPACK_PACKAGE_NAME)">
  8. <Directory Id="VersionedApplicationProgramsFolder" Name="$(var.CPACK_PACKAGE_VERSION)"/>
  9. </Directory>
  10. </Directory>
  11. <Directory Id="DesktopFolder" SourceName="Desktop"/>
  12. </DirectoryRef>
  13. <!-- the WorkingDirectory attribute for shortcuts uses directory refs -->
  14. <DirectoryRef Id="INSTALL_ROOT">
  15. <Directory Id="root.bin" Name="bin">
  16. <Directory Id="root.bin.Windows" Name="Windows">
  17. <Directory Id="root.bin.Windows.profile" Name="profile">
  18. <Directory Id="root.bin.Windows.profile.Default" Name="Default" />
  19. </Directory>
  20. </Directory>
  21. </Directory>
  22. </DirectoryRef>
  23. <DirectoryRef Id="DesktopFolder">
  24. <Component Id="DesktopShortcuts" Guid="{2600B54A-65FB-4507-A7CD-3CE4817C7173}">
  25. <Shortcut Id="DesktopShortcut_Editor"
  26. Target="[root.bin.Windows.profile.Default]Editor.exe"
  27. WorkingDirectory="root.bin.Windows.profile.Default"
  28. Name="$(var.CPACK_PACKAGE_NAME) Editor" />
  29. <Shortcut Id="DesktopShortcut_ProjectManager"
  30. Target="[root.bin.Windows.profile.Default]o3de.exe"
  31. WorkingDirectory="root.bin.Windows.profile.Default"
  32. Name="$(var.CPACK_PACKAGE_NAME) Project Manager" />
  33. <RemoveFolder Id="DesktopFolder" On="uninstall"/>
  34. <RegistryValue
  35. Root="HKCU"
  36. Key="Software\$(var.CPACK_PACKAGE_VENDOR)\$(var.CPACK_PACKAGE_NAME)"
  37. Name="installed"
  38. Type="integer"
  39. Value="1"
  40. KeyPath="yes"/>
  41. </Component>
  42. </DirectoryRef>
  43. <DirectoryRef Id="VersionedApplicationProgramsFolder">
  44. <Component Id="StartMenuShortcuts" Guid="{E6447F0F-A46E-4A72-83D8-600707B590E8}">
  45. <Shortcut Id="StartMenuShortcut_Editor"
  46. Target="[root.bin.Windows.profile.Default]Editor.exe"
  47. WorkingDirectory="root.bin.Windows.profile.Default"
  48. Name="$(var.CPACK_PACKAGE_NAME) Editor" />
  49. <Shortcut Id="StartMenuShortcut_MaterialEditor"
  50. Target="[root.bin.Windows.profile.Default]MaterialEditor.exe"
  51. WorkingDirectory="root.bin.Windows.profile.Default"
  52. Name="$(var.CPACK_PACKAGE_NAME) Material Editor" />
  53. <Shortcut Id="StartMenuShortcut_ProjectManager"
  54. Target="[root.bin.Windows.profile.Default]o3de.exe"
  55. WorkingDirectory="root.bin.Windows.profile.Default"
  56. Name="$(var.CPACK_PACKAGE_NAME) Project Manager" />
  57. <RemoveFolder Id="RemoveVersionedApplicationProgramsFolder" Directory='VersionedApplicationProgramsFolder' On="uninstall"/>
  58. <RemoveFolder Id="RemoveApplicationProgramsFolder" Directory="ApplicationProgramsFolder" On="uninstall"/>
  59. <RegistryValue
  60. Root="HKCU"
  61. Key="Software\$(var.CPACK_PACKAGE_VENDOR)\$(var.CPACK_PACKAGE_NAME)"
  62. Name="installed"
  63. Type="integer"
  64. Value="1"
  65. KeyPath="yes"/>
  66. </Component>
  67. </DirectoryRef>
  68. </Fragment>
  69. </Wix>