summaryrefslogtreecommitdiffstats
path: root/dist/packages/org.qtproject.ifw/meta/installscript.qs
blob: c742aeea5fdac9f1eabe21f85f63791254238e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Component()
{
    // Install to @RootDir@ instead of @HomeDir@ on Windows
    if (installer.value("os") === "win") {
        var homeDir = installer.value("HomeDir");
        var targetDir = installer.value("TargetDir").replace(homeDir, "@RootDir@");
        installer.setValue("TargetDir", targetDir);
    }

    // do not show component selection page
    installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
    // no startmenu entry so no need to ask where to create it
    installer.setDefaultPageVisible(QInstaller.StartMenuSelection, false);
}