cmake/Source/QtIFW/installscript.qs.in

28 lines
785 B
Plaintext
Raw Normal View History

2017-04-14 19:02:05 +02:00
// Component: CMake
2015-04-27 22:25:09 +02:00
function Component()
{
2016-10-30 18:24:19 +01:00
// Do not show component selection page
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
2015-04-27 22:25:09 +02:00
}
Component.prototype.createOperations = function()
{
// Create shortcut
if (installer.value("os") === "win") {
2017-04-14 19:02:05 +02:00
%_CPACK_IFW_SHORTCUT_OPTIONAL%
2015-04-27 22:25:09 +02:00
component.addOperation("CreateShortcut",
2017-04-14 19:02:05 +02:00
"@TargetDir@/%CMAKE_DOC_DIR%/cmake.org.html",
"@StartMenuDir@/CMake Web Site.lnk");
2015-04-27 22:25:09 +02:00
component.addOperation("CreateShortcut",
2017-04-14 19:02:05 +02:00
"@TargetDir@/cmake-maintenance.exe",
"@StartMenuDir@/CMake Maintenance Tool.lnk");
2015-04-27 22:25:09 +02:00
}
2015-11-17 17:22:37 +01:00
// Call default implementation
component.createOperations();
2015-04-27 22:25:09 +02:00
}