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

Provide consistent ApplicationsDir predefined variable

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 3.1.0, 3.0.1
    • 1.5.0
    • General
    • None
    • Pre-built 1.5 on Windows 7 64-bit

    Description

      On Windows, the @ApplicationsDir@ predefined variable uses the value from CSIDL_PROGRAM_FILES (libs/installer/packagemanagercoredata.cpp).

      On a 64-bit Windows PC, if a 32-bit build of the installer is used, this returns the "Program Files (x86)" directory. If a 64-bit build of the installer is used, the "Program Files" directory is returned.

      This makes the installer a little inconsistent; it is the product that is being installed that is built for a particular architecture.

      One could mandate that the specific build of the installer should be used, depending on the target architecture, but it would nice if this was not the case. Also, it's convenient to use the pre-built binaries, and, as far as I can tell, the 64-bit Windows version is not pre-built.

      A script can be used to workaround this condition, but an alternative predefined variable would be convenient; e.g. @ApplicationsDir3264@, which is based on the target's architecture, not the installer's. I.e would always return "Program Files".

      However, this does open a can of worms, because one might specifically require the 32-bit "Program Files (x86)" or the 64-bit "Program Files" (@ApplicationsDir32@ and @ApplicationsDir64@ ).

      Attachments

        Issue Links

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

          Activity

            People

              installerteam Installer Team
              chard Richard Hazlewood
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes