Details
-
Task
-
Resolution: Invalid
-
Not Evaluated
-
None
-
None
-
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?