installscript.qs.in 785 B

123456789101112131415161718192021222324252627
  1. // Component: CMake
  2. function Component()
  3. {
  4. // Do not show component selection page
  5. installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
  6. }
  7. Component.prototype.createOperations = function()
  8. {
  9. // Create shortcut
  10. if (installer.value("os") === "win") {
  11. %_CPACK_IFW_SHORTCUT_OPTIONAL%
  12. component.addOperation("CreateShortcut",
  13. "@TargetDir@/%CMAKE_DOC_DIR%/cmake.org.html",
  14. "@StartMenuDir@/CMake Web Site.lnk");
  15. component.addOperation("CreateShortcut",
  16. "@TargetDir@/cmake-maintenance.exe",
  17. "@StartMenuDir@/CMake Maintenance Tool.lnk");
  18. }
  19. // Call default implementation
  20. component.createOperations();
  21. }