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. QtIFW

QtIFW

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 126 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.
  • M Offline
    M Offline
    Monir
    wrote on last edited by
    #1

    Regarding QtIFW-4.8.1, Windows 11, the installer.hasAdminRights() function always returns false, even when running the installer on an administrator account, until privileges are elevated using the installer.gainAdminRights() function.

    The problem is that I need to differentiate between running the installer on an administrator account and running it on a limited-privilege account to select the installation folder (for example).

    If I let the limited user to gain admin rights, I encounter problems with the maintenance tool; it fails to connect to the repository and download updates.

    Any idea please?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Katja Marttila
      wrote last edited by
      #2

      Even with the admin account, Windows still needs to launch UAC:
      https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/how-it-works
      "A user that is a member of the Administrators group can sign in, browse the Web, and read e-mail while using a standard user access token. When the administrator needs to perform a task that requires the administrator access token, Windows automatically prompts the user for approval. This prompt is called an elevation prompt, and its behavior can be configured via policy or registry."

      installer.hasAdminRights() is true only when the UAC has been accepted. Unfortunately I don't have a solution for you to differentiate between normal and admin user. Windows does not seem to have a registry value for it either which script could utilize.
      Even with the UAC accepted, connection to the repository and download should be possible. Please file a report about this with details to https://qt-project.atlassian.net if it is not working for you

      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