Update packaging of CMake for QtIFW 2.0

This commit is contained in:
Konstantin Podsvirov 2015-04-29 12:54:20 +03:00 committed by Brad King
parent 9a0ba4d24a
commit 342d15cbc2
3 changed files with 12 additions and 2 deletions

View File

@ -38,6 +38,10 @@ if(CPACK_GENERATOR MATCHES "IFW")
@_CPACK_IFW_PACKAGE_ICON@
set(CPACK_IFW_PACKAGE_WINDOW_ICON
"@CMake_SOURCE_DIR@/Source/QtDialog/CMakeSetup128.png")
set(CPACK_IFW_PACKAGE_CONTROL_SCRIPT
"@CMake_SOURCE_DIR@/Source/QtIFW/controlscript.qs")
# Uninstaller configuration
set(CPACK_IFW_PACKAGE_MAINTENANCE_TOOL_NAME "cmake-maintenance")
# Package configuration group
set(CPACK_IFW_PACKAGE_GROUP CMake)
# Group configuration

View File

@ -0,0 +1,6 @@
// controlscript.qs - CMake installation control script
function Controller()
{
// do nothing now
}

View File

@ -18,7 +18,7 @@ Component.prototype.createOperations = function()
installer.value("StartMenuDir") + "/CMake Web Site.lnk");
component.addOperation("CreateShortcut",
installer.value("TargetDir") + "/uninstall.exe",
installer.value("StartMenuDir") + "/Uninstall.lnk");
installer.value("TargetDir") + "/cmake-maintenance.exe",
installer.value("StartMenuDir") + "/CMake Maintenance Tool.lnk");
}
}