Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-306

Making a component selectable or not with installscript

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • General
    • None

      As I described in issue https://bugreports.qt-project.org/browse/QTIFW-274 I tried to make components visible or invisible in the installer depending on the operating system (32 or 64 bit).
      I tried the following code suggested:

      var programFiles = installer.environmentVariable("ProgramFiles(x86)");
      			if (programFiles == ""){ // 32 bit
      				installer.componentByName("com.ie.camspecs").addDependency(component.name);
      				component.setSelected(true);
      			} else {
      				component.setSelected(false);
      			}
      

      and vice versa with the component for 64 bit.
      I found the

      setSelected()

      in the source code of the installer framework. In the installer window both components are still displayed and are not selected.
      Is there any chance to make only one component (of two that are packed in the installer) selectable for the user depending on the operating system?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            installerteam Installer Team
            abulafia Holger Buhr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes