0

How can I hide the select installation folder using qt installer Framework?

enter image description here

demonplus
  • 5,613
  • 12
  • 49
  • 68
Romz Lat
  • 11
  • 4

2 Answers2

1

As I explained in a similar post here : Qt installer framework: remove radio buttons from uninstaller, I think the same answer can be used for your problem:

function Controller() {
    if (installer.isInstaller()) {
        installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
    }
}

I haven't tested this snippet but I'm pretty sure it will skip the "Target Directory page". Don't forget to add this script (let's say, controlScript.js) in your config.xml file :

<ControlScript>controlScript.qs</ControlScript>
Community
  • 1
  • 1
MBach
  • 1,647
  • 16
  • 30
1

On the installer script, adding this line:

currentPage.TargetDirectoryLineEdit.enabled = false;
Alberto Valero
  • 410
  • 4
  • 14