CMake: Fix Web Site shortcut in IFW installer for Windows

This commit is contained in:
Konstantin Podsvirov 2015-07-03 14:05:40 +03:00 committed by Brad King
parent c823f04e0c
commit c14f20f7dd
1 changed files with 4 additions and 4 deletions

View File

@ -5,20 +5,20 @@ function Component()
Component.prototype.createOperations = function()
{
// call default implementation to actually install applications!
component.createOperations();
// Create shortcut
if (installer.value("os") === "win") {
@_CPACK_IFW_SHORTCUT_OPTIONAL@
component.addOperation("CreateShortcut",
installer.value("TargetDir") + "/cmake.org.html",
installer.value("TargetDir") + "/@CMAKE_DOC_DIR@/cmake.org.html",
installer.value("StartMenuDir") + "/CMake Web Site.lnk");
component.addOperation("CreateShortcut",
installer.value("TargetDir") + "/cmake-maintenance.exe",
installer.value("StartMenuDir") + "/CMake Maintenance Tool.lnk");
}
// Call default implementation
component.createOperations();
}