Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40336

Qt Creator refuses to forget about old (removed) Qt versions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.1.0
    • Packaging & Installer
    • None
    • Windows 8.1 64-bit. I have installed many versions of Qt and Qt Creator on this PC over the years, using both Online and Offline installers.

    Description

      Hello,

      Background

      • I've used the online installer to install Qt 5.1.0, 5.2.0 and 5.2.1 when they are released. (I don't think I installed Qt 5.1.1, but my memory might be faulty)
      • When I upgrade, I install the new version through the online installer, and then uninstall the old version once I've verified that the new one works.
      • In parallel with the online packages, I've also installed some versions of Qt 5 using the offline installers (which include Qt Creator), in different folders from the online installer.

      Issue

      • Even though Qt 5.1.0 is long gone from my system, I can't purge the entries from Qt Creator (see screenshots and steps below)
      • Later versions were uninstalled without incident.

      Purging steps

      1. Open Tools -> Options -> Build & Run in Qt Creator.
      2. In the Qt Versions tab, click "Clean up". This removes the 2 copies of Qt 5.1.0.
      3. Click "OK", and then close Qt Creator.
      4. Open C:\Users[Username]\AppData\Roaming\QtProject\qtversion.xml. I verify that Qt 5.1.0 are no longer there.
      5. Open C:\Users[Username]\AppData\Roaming\QtProject\profiles.xml, and remove the entries for the Qt 5.1.0 kits. (Qt Creator's GUI doesn't let me remove auto-detected kits). Save.
      6. Restart Qt Creator

      Unfortunately, after Step #6, the Qt 5.1.0 kits and Qt Versions are restored!

      While modifying profiles.xml, I made sure I renumbered "Profile.X" and reduced "Profile.Count" by 2. The removed sections were:

       <data>
        <variable>Profile.0</variable>
        <valuemap type="QVariantMap">
         <value type="bool" key="PE.Profile.AutoDetected">true</value>
         <valuemap type="QVariantMap" key="PE.Profile.Data">
          <value type="QString" key="Debugger.Information">{d1fea8f3-9092-4db2-aeb8-fa256a75be0a}</value>
          <value type="QString" key="PE.Profile.Device">Desktop Device</value>
          <value type="QByteArray" key="PE.Profile.DeviceType">Desktop</value>
          <value type="QString" key="PE.Profile.SysRoot"></value>
          <value type="QString" key="PE.Profile.ToolChain"></value>
          <value type="QString" key="QtPM4.mkSpecInformation"></value>
          <value type="int" key="QtSupport.QtInformation">-1</value>
         </valuemap>
         <value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
         <value type="QString" key="PE.Profile.Id">qt.510.win64_msvc2012_64_opengl.essentials_kit</value>
         <valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
         <value type="QString" key="PE.Profile.Name">Desktop Qt 5.1.0 MSVC2012 OpenGL 64bit</value>
         <value type="bool" key="PE.Profile.SDK">true</value>
        </valuemap>
       </data>
       <data>
        <variable>Profile.1</variable>
        <valuemap type="QVariantMap">
         <value type="bool" key="PE.Profile.AutoDetected">true</value>
         <valuemap type="QVariantMap" key="PE.Profile.Data">
          <value type="QString" key="Debugger.Information">{d1fea8f3-9092-4db2-aeb8-fa256a75be0a}</value>
          <value type="QString" key="PE.Profile.Device">Desktop Device</value>
          <value type="QByteArray" key="PE.Profile.DeviceType">Desktop</value>
          <value type="QString" key="PE.Profile.SysRoot"></value>
          <value type="QString" key="PE.Profile.ToolChain"></value>
          <value type="QString" key="QtPM4.mkSpecInformation"></value>
          <value type="int" key="QtSupport.QtInformation">-1</value>
         </valuemap>
         <value type="QString" key="PE.Profile.Icon">:///DESKTOP///</value>
         <value type="QString" key="PE.Profile.Id">qt.510.win32_mingw48.essentials_kit</value>
         <valuelist type="QVariantList" key="PE.Profile.MutableInfo"/>
         <value type="QString" key="PE.Profile.Name">Desktop Qt 5.1.0 MinGW 32bit</value>
         <value type="bool" key="PE.Profile.SDK">true</value>
        </valuemap>
       </data>
      

      Attachments
      I've attached the contents of C:\Users[Username]\AppData\Roaming\QtProject, in case it contains useful diagnostic info. However, I removed the contents of the ".helpcollection" folder because they were 49 MB in total.

      Attachments

        1. kits.png
          49 kB
          Sze Howe Koh
        2. QtProject.zip
          32 kB
          Sze Howe Koh
        3. qtversions.png
          40 kB
          Sze Howe Koh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            installerteam Installer Team
            jksh Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes