Change manifest file



  • Hi,

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

    My Qt version is Qt 5.1.1


  • Moderators

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



  • 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'


  • Moderators

    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>"
    @



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.