summaryrefslogtreecommitdiffstats
path: root/Source/QtIFW/installscript.qs.in
blob: 549161121a8624276d5fffc99ef27b0d3bc86158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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");
    }
}