Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Setting Target Directory To "Program Files" When Using Installer Framework

Setting Target Directory To "Program Files" When Using Installer Framework

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 4.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oracle3001
    wrote on last edited by
    #1

    When using the installer framework, in the config.xml you set the Target Directory.

    <TargetDir>@RootDir ?????? </TargetDir>

    I would like it to have to choose Program Files or Program Files (x86) dependent on the machine being 32 or 64 bit. Is there an @ variable to call here.

    Note:- This will be a windows installer, so no concerns about cross platform.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nwoki
      wrote on last edited by
      #2

      Bump. I have the same problem

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nwoki
        wrote on last edited by
        #3

        Looking at the source code I found that there's a var for the current applications dir so that you can set it as a default.

        https://qt.gitorious.org/installer-framework/installer-framework/source/f56c263c1220765d6f6bf74e04ddbb23c0e96a88:src/libs/installer/packagemanagercoredata.cpp#L85

        the var is: ApplicationsDir (line 85).

        I use that

        1 Reply Last reply
        0
        • A Offline
          A Offline
          alex.araratyan
          wrote on last edited by
          #4

          Thanks! It works.

          But now the "Next" button is disabled in the installation wizard. It complains that "Program Files" folder contains space.

          It looks like there is no way to select installation folder containing space.

          Anyone else has this issue?

          1 Reply Last reply
          0
          • N Offline
            N Offline
            nwoki
            wrote on last edited by
            #5

            You need to add

            @<AllowSpaceInPath>true</AllowSpaceInPath>@

            in your config.xml

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved