Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. IFW - Windows Registry
QtWS25 Last Chance

IFW - Windows Registry

Scheduled Pinned Locked Moved Installation and Deployment
scriptifw
3 Posts 2 Posters 1.8k 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.
  • M3t4d3usM Offline
    M3t4d3usM Offline
    M3t4d3us
    wrote on last edited by
    #1

    Hi,

    Does anyone know how to read/store a value from a Windows Registry key? And if a key has more than one value, how to read a concrete value?

    Right now am able to add keys and values to the registry as remove them when uninstalling the application, but can´t store a value. I have been searching for examples without any success. Any help would be welcome.

    Thanks in advance.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi,

      there is an example on our wiki: https://wiki.qt.io/Assigning_a_file_type_to_an_Application_on_Windows#How_to_do_it. Search for the function SetHkcrUserRegKey.

      Hope this helps!

      M3t4d3usM 1 Reply Last reply
      0
      • ? A Former User

        Hi,

        there is an example on our wiki: https://wiki.qt.io/Assigning_a_file_type_to_an_Application_on_Windows#How_to_do_it. Search for the function SetHkcrUserRegKey.

        Hope this helps!

        M3t4d3usM Offline
        M3t4d3usM Offline
        M3t4d3us
        wrote on last edited by
        #3

        Many thanks @Wieland,

        but my problem is with the installer script (sorry for not having explained before (-_-)). The application is fine according to the customer feedback.

        Am trying to check the existence of previous installations and if so, check which version is installed. For this, I have created a registry entry containing the application path and installed version, but I don´t know how to compare the current installation version with the previously installed one.

        Thanks in advance.

        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