Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32469

"Link with Qt" enabled even though the installation is not writable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • Qt Creator 16.0.0-beta1
    • All Other Issues
    • None
    • Windows 10 Pro 22H2 19045.5371
      64-bit operating system, x64-based processor

      Qt Creator 16.0.0-beta1 (15.0.82)
      Based on Qt 6.8.1 (MSVC 2022, x86_64)
      Built on Jan 30 2025 10:29:45
      From revision 54e8973964
    • Windows

      What exactly did I do:

      1. First, I already had an existing Qt and QtCreator installation at "D:\Qt". This installation is managed by the Qt Maintenance Tool and resides in a write-protected directory.

      2. I downloaded a fresh MSI installer from the latest GitHub release (see the link below) and ran through it with default settings. The installer created a directory under "C:\Program Files\".

      https://github.com/qt-creator/qt-creator/releases/download/v16.0.0-beta1/qtcreator-windows-x64-msvc-16.0.0-beta1.msi

      3. Then, I opened the newly installed QtCreator and went to "Edit — Preferences — Kits — Qt Versions". I added a couple of Qt versions manually and then noticed the "Link with Qt" button. So I pressed it and pointed it to my existing installation.

      4. After I pressed "OK", the following error message appeared:

      Title: Error Linking With Qt
      Could not write to "C:/Program Files/qtcreator-15.0.82/share/qtcreator/QtProject/QtCreator.ini".

      I should note here that the "QtProject" subdirectory does not even exist in the first place. And isn't it strange it tries to write anything into "Program Files" like it's still the 90s?

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

            con Eike Ziller
            pavelkretov Pavel Kretov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes