summaryrefslogtreecommitdiffstats
path: root/Source/QtIFW/installscript.qs.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-28 14:35:49 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-28 14:35:49 (GMT)
commit68f4a0ee306e5b5aec1252d0e7ed2af93273ee9f (patch)
treebb4df1f2b6a221f5123727e8b14b9413a71d4eaf /Source/QtIFW/installscript.qs.in
parent95c47f6d379764c818bd0693b1928d3339401a52 (diff)
parentb9be4d21779ba7b301f12a7a5c358000e1424cee (diff)
downloadCMake-68f4a0ee306e5b5aec1252d0e7ed2af93273ee9f.zip
CMake-68f4a0ee306e5b5aec1252d0e7ed2af93273ee9f.tar.gz
CMake-68f4a0ee306e5b5aec1252d0e7ed2af93273ee9f.tar.bz2
Merge topic 'cpack-ifw-generator'
b9be4d21 Help: Add notes for topic 'cpack-ifw-generator' 73b336c9 CPackIFW: Replace use of strftime with cmTimestamp 44850a26 CPack: Add an "IFW" generator for Qt Framework Installer
Diffstat (limited to 'Source/QtIFW/installscript.qs.in')
-rw-r--r--Source/QtIFW/installscript.qs.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/QtIFW/installscript.qs.in b/Source/QtIFW/installscript.qs.in
new file mode 100644
index 0000000..5491611
--- /dev/null
+++ b/Source/QtIFW/installscript.qs.in
@@ -0,0 +1,24 @@
+function Component()
+{
+ // default constructor
+}
+
+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("StartMenuDir") + "/CMake Web Site.lnk");
+
+ component.addOperation("CreateShortcut",
+ installer.value("TargetDir") + "/uninstall.exe",
+ installer.value("StartMenuDir") + "/Uninstall.lnk");
+ }
+}