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. Qt Creator create exes with admin privilegies

Qt Creator create exes with admin privilegies

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.4k Views 2 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.
  • L Offline
    L Offline
    lqsa
    wrote on last edited by
    #1

    I haven't done any update on Qt. From today, Qt creates exe files with admin privilegies for new projects. Old projects makes exe files normal.

    Why? and, how to restore to create normal exes?

    0_1541787758891_Captura.PNG

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by Christian Ehrlicher
      #2

      Imo this has nothing to do with Qt but with the application name and the user account control stuff. You need to create a proper manifest file (see for example the one needed for patch.exe which has the same problems since ages. e.g. https://github.com/highperformancecoder/scidavis/blob/master/patch.exe.manifest )

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      4
      • L Offline
        L Offline
        lqsa
        wrote on last edited by
        #3

        Sorry, I don't understand. I never created a manifest file for all my projects and always the exe was created normal, without privilegies. Why all new projects creates with it? Any configuration on Qt Creator?

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          As I said in my first post it has nothing to do with qt nor qt-creator but with the name of your executable and the user account control stuff from windows.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          JonBJ 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            As I said in my first post it has nothing to do with qt nor qt-creator but with the name of your executable and the user account control stuff from windows.

            JonBJ Online
            JonBJ Online
            JonB
            wrote on last edited by
            #5

            @Christian-Ehrlicher
            Are you saying that if @lqsa tries creating a different new project with a different name for his .exe he will not see his problem?

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by Christian Ehrlicher
              #6

              @JonB yes, the uac decides on the name of the executable how to handle it (a little but stupid but it's doing this since win7). When it finds 'update' or 'patch' in there (and maybe others) and there is no proper manifest embedded the uac will jump in and ask for admin privileges.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              JonBJ 1 Reply Last reply
              4
              • Christian EhrlicherC Christian Ehrlicher

                @JonB yes, the uac decides on the name of the executable how to handle it (a little but stupid but it's doing this since win7). When it finds 'update' or 'patch' in there (and maybe others) and there is no proper manifest embedded the uac will jump in and ask for admin privileges.

                JonBJ Online
                JonBJ Online
                JonB
                wrote on last edited by
                #7

                @Christian-Ehrlicher
                I think that knowing if he renames his project/executable the problem will go away will help the OP! :)

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lqsa
                  wrote on last edited by lqsa
                  #8

                  Yes!!

                  I had created two projects with the word Updater on the project name. If I put another name without that word, it creates the exes normal.

                  Thank you very much!!!

                  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