summaryrefslogtreecommitdiffstats
path: root/examples/startmenu/packages/org.qtproject.ifw.example
diff options
context:
space:
mode:
Diffstat (limited to 'examples/startmenu/packages/org.qtproject.ifw.example')
-rw-r--r--examples/startmenu/packages/org.qtproject.ifw.example/data/README.txt2
-rw-r--r--examples/startmenu/packages/org.qtproject.ifw.example/meta/installscript.qs14
-rw-r--r--examples/startmenu/packages/org.qtproject.ifw.example/meta/package.xml9
3 files changed, 25 insertions, 0 deletions
diff --git a/examples/startmenu/packages/org.qtproject.ifw.example/data/README.txt b/examples/startmenu/packages/org.qtproject.ifw.example/data/README.txt
new file mode 100644
index 000000000..e35ab831d
--- /dev/null
+++ b/examples/startmenu/packages/org.qtproject.ifw.example/data/README.txt
@@ -0,0 +1,2 @@
+This file can be opened through the start menu, "Qt Installer Framework Example" section!
+
diff --git a/examples/startmenu/packages/org.qtproject.ifw.example/meta/installscript.qs b/examples/startmenu/packages/org.qtproject.ifw.example/meta/installscript.qs
new file mode 100644
index 000000000..d3ed7edec
--- /dev/null
+++ b/examples/startmenu/packages/org.qtproject.ifw.example/meta/installscript.qs
@@ -0,0 +1,14 @@
+function Component()
+{
+ // default constructor
+}
+
+Component.prototype.createOperations = function()
+{
+ // call default implementation to actually install README.txt!
+ component.createOperations();
+
+ if (installer.value("os") === "win") {
+ component.addOperation("CreateShortcut", "@TargetDir@/README.txt", "@StartMenuDir@/README.lnk");
+ }
+}
diff --git a/examples/startmenu/packages/org.qtproject.ifw.example/meta/package.xml b/examples/startmenu/packages/org.qtproject.ifw.example/meta/package.xml
new file mode 100644
index 000000000..31a2beb6a
--- /dev/null
+++ b/examples/startmenu/packages/org.qtproject.ifw.example/meta/package.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Package>
+ <Name>org.qtproject.ifw.example</Name>
+ <DisplayName>README.txt</DisplayName>
+ <Description>A README.txt, accessible through a start menu entry.</Description>
+ <ReleaseDate>2013-01-01</ReleaseDate>
+ <Version>1.0.0-1</Version>
+ <Script>installscript.qs</Script>
+</Package>