2015-07-03 12:58:22 +03:00
|
|
|
function Component()
|
|
|
|
{
|
|
|
|
// default constructor
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|