blob: 8a12a68048176a9833ea183f9e373213a1e11173 (
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);
}
|