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. Change manifest file
Qt 6.11 is out! See what's new in the release blog

Change manifest file

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 4.8k 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.
  • A Offline
    A Offline
    Arthiego90
    wrote on last edited by
    #1

    Hi,

    I need to change the manifest file of my app, how can i achieve it?

    My Qt version is Qt 5.1.1

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      either way you can edit it directly in QtCreator IDE or via QtCreators GUI in the project settings.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Arthiego90
        wrote on last edited by
        #3

        I have added:

        @win32 {
        CONFIG += embed_manifest_exe
        QMAKE_LFLAGS += " /MANIFESTUAC:level='requireAdministrator''"
        }
        @
        to the .pro file, and it work fine, but i need also uiAccess set to "true", so i updated it to:
        @win32 {
        CONFIG += embed_manifest_exe
        QMAKE_LFLAGS += " /MANIFESTUAC:level='requireAdministrator' uiAccess='true'"
        }@

        But there is an error:
        bq. :-1: error:LNK1181: cannot open input file 'uiAccess='true'.obj'

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          oh you are talking about that manifest.
          You were talking about "app" and "manifest file" so i assumed you are talking about the android manifest.

          Either you can do it via the command line:
          @
          win32 {
          CONFIG += embed_manifest_exe
          QMAKE_LFLAGS += /MANIFESTUAC:"level='requireAdministrator' uiAccess='true'"
          }
          @
          or create an "external" "manifest file":http://msdn.microsoft.com/en-us/library/fft52235 and link this to your application:
          @
          QMAKE_LFLAGS += /MANIFEST /MANIFESTFILE:"<path-to-file>"
          @

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Arthiego90
            wrote on last edited by
            #5

            I tried the:

            @ win32 {
            CONFIG += embed_manifest_exe
            QMAKE_LFLAGS += /MANIFESTUAC:"level='requireAdministrator' uiAccess='true'"
            }
            @

            and there is the same error:

            error:LNK1181: cannot open input file ‘uiAccess=‘true’.obj’

            its not interpreting the uiAccess argument correct, meaby there is another syntax for this on my version of QtCreator?

            @edit Its clearly shouting to the second argument, because when i change level and uiAccess positions the error is:

            error:LNK1181: cannot open input file 'level='requireAdministrator'.obj'

            @edit 2 the solution is to write arguments without space between them

            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