2015-07-03 12:58:22 +03:00
|
|
|
function Component()
|
|
|
|
{
|
2016-07-13 01:20:44 +03:00
|
|
|
// Do not show component selection page
|
|
|
|
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
|
2015-07-03 12:58:22 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
Component.prototype.createOperations = function()
|
|
|
|
{
|
|
|
|
// Create shortcut
|
|
|
|
if (installer.value("os") === "win") {
|
|
|
|
|
|
|
|
@_CPACK_IFW_SHORTCUT_OPTIONAL@
|
|
|
|
|
|
|
|
component.addOperation("CreateShortcut",
|
2015-07-03 14:05:40 +03:00
|
|
|
installer.value("TargetDir") + "/@CMAKE_DOC_DIR@/cmake.org.html",
|
2015-07-03 12:58:22 +03:00
|
|
|
installer.value("StartMenuDir") + "/CMake Web Site.lnk");
|
|
|
|
|
|
|
|
component.addOperation("CreateShortcut",
|
|
|
|
installer.value("TargetDir") + "/cmake-maintenance.exe",
|
|
|
|
installer.value("StartMenuDir") + "/CMake Maintenance Tool.lnk");
|
|
|
|
}
|
2015-07-03 14:05:40 +03:00
|
|
|
|
|
|
|
// Call default implementation
|
|
|
|
component.createOperations();
|
2015-07-03 12:58:22 +03:00
|
|
|
}
|