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

Making a component selectable or not with installscript

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes