Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Credentials for Windows Service



  • Hi!!

    I have an application in Qt that generates the Mykey key in the Windows registry at HKEY_CURRENT_USER\Software\MyCompany\MyApp\ to communicate with a Windows service. (I can't find a way to generate that key in another location)

    On the other hand, I have a Windows Service(MSVS 2019 C#) that must read that same key, for which it is necessary to install it as User, log in with credentials.
    If I set it as 'Local System Account' it tries to read the key from HKEY_USERS\Software\MyCompany\MyApp, and it doesn't exist there.

    With the QTIFW I prepare the installation of the Qt Program and the Windows Service, but I have no way of knowing the password of the user's credentials.

    Any ideas to do it? Or another possible solution?

    Thank you


Log in to reply