Merge topic 'export-refactor-more-for-cps'
[kiteware-cmake.git] / Source / QtIFW / installscript.qs.in
blob72d49e84c03a1d5f4845cc7588adc4d47b6e0d62
1 // Component: CMake
3 function Component()
5     // Do not show component selection page
6     installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
9 Component.prototype.createOperations = function()
11     // Create shortcut
12     if (installer.value("os") === "win") {
14 %_CPACK_IFW_SHORTCUT_OPTIONAL%
16         component.addOperation("CreateShortcut",
17                                "@TargetDir@/%CMAKE_DOC_DIR%/cmake.org.html",
18                                "@StartMenuDir@/CMake Web Site.lnk");
20         component.addOperation("CreateShortcut",
21                                "@TargetDir@/cmake-maintenance.exe",
22                                "@StartMenuDir@/CMake Maintenance Tool.lnk");
23     }
25     // Call default implementation
26     component.createOperations();