Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSettings allow to access the 32-bit Registry from a 64-bit application.
Forum Updated to NodeBB v4.3 + New Features

QSettings allow to access the 32-bit Registry from a 64-bit application.

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 904 Views 1 Watching
  • 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.
  • E Offline
    E Offline
    ericmenezesn
    wrote on last edited by
    #1

    I'm developing an application using the Qt framework. One of the features is to get all registry from HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall using QSettings.

    When I was testing, I found something curious: My code get the path "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", in other words, QSettings registry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", QSettings::NativeForm), and print it to json file. Until then, it's ok. But when I open the regedit.exe and I go to the same path, the values are different. My application don't collect that informations.

    So I went researching and found something, windows do a redirection of this path to HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows, and that path (64bits path) apparently is inaccessible.

    I found "this commit":https://qt.gitorious.org/qt/sschuberths-clone/commit/d1b701bf69aa3ffd097442b4574a31520fc75567 where seems fix it, but it's not the same code of qt framework, and a "QTBUG":https://bugreports.qt-project.org/browse/QTBUG-3845?page=com.atlassian.jira.plugin.system.issuetabpanels:changehistory-tabpanel open since 2010, but still "Unresolved".

    Anyone knows how can I get around this problem still using QSettings? Some registry, like WinRAR, are not collected because it. I've tried use qsettings of this commit, but use QSettings::Registry64Format is the same of nothing. Don't get error, but do not collect.

    Thanks, sry about the bad english.

    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