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. Help with Windows admin rights
Forum Updated to NodeBB v4.3 + New Features

Help with Windows admin rights

Scheduled Pinned Locked Moved General and Desktop
qtcreatorwindowsmanifest
2 Posts 1 Posters 935 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.
  • N Offline
    N Offline
    N_Adamson
    wrote on 19 Jun 2015, 17:46 last edited by
    #1

    Writing my first program!
    I've been bashing my head against the wall for a few days and cannot find consistent information.
    I've been following this post to embed the manifest into the my app. This doesn't seem to work. But here is what I have.

    .pro file
    *QT += core gui
    widgets

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = FirewallConfig
    TEMPLATE = app

    SOURCES += main.cpp
    firewallconfig.cpp

    HEADERS += firewallconfig.h

    FORMS += firewallconfig.ui

    RC_FILE = firewallconfig.rc

    win32 {
    WINSDK_DIR = C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A
    WIN_PWD = $$replace(PWD, /, \)
    OUT_PWD_WIN = $$replace(OUT_PWD, /, \)
    QMAKE_POST_LINK = "$$WINSDK_DIR/bin/x64/mt.exe -manifest $$quote($$WIN_PWD\$$basename(TARGET).manifest) -outputresource:$$quote($$OUT_PWD_WIN\${DESTDIR_TARGET};1)"
    }

    .exe.manifest
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    <assemblyIdentity type="" name="FirewallConfig" version="0.0.0.1" processorArchitecture="X86" type=""/>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
    <security>
    <requestedPrivileges>
    <requestedExecutionLevel level="requireAdministrator"/>
    </requestedPrivileges>
    </security>
    </trustInfo>
    </assembly>

    .rc file
    VS_VERSION_INFO VERSIONINFO
    FILEVERSION VER_FILEVERSION
    PRODUCTVERSION VER_PRODUCTVERSION
    BEGIN
    BLOCK "StringFileInfo"
    BEGIN
    BLOCK "040904E4"
    BEGIN
    VALUE "CompanyName", "Siemens"
    VALUE "FileDescription", "Firewall Config"
    VALUE "FileVersion", "0,0,0,1"
    VALUE "InternalName", "Firewallconfig"
    VALUE "LegalCopyright", "Copyright © 2015 Siemens"
    VALUE "OriginalFilename", "firewallconfig.exe"
    VALUE "ProductName", "FirewallConfig"
    VALUE "ProductVersion", "0,0,0,1"
    END
    END

    BLOCK "VarFileInfo"
    BEGIN
    VALUE "Translation", 0x0409, 0x04B0
    END
    END

    Please help! and thank you!

    1 Reply Last reply
    0
    • N Offline
      N Offline
      N_Adamson
      wrote on 22 Jun 2015, 19:55 last edited by
      #2

      Bueller?

      1 Reply Last reply
      0

      2/2

      22 Jun 2015, 19:55

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved