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. Embed Manifest using RC file?!?! [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Embed Manifest using RC file?!?! [SOLVED]

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.9k 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
    amahta
    wrote on last edited by
    #1

    How can I embed application manifest using an RC file?
    I want to use it with Qt Installer framework. I want to start my installer using Admin privileges.

    Thou shalt programme
    http://www.amin-ahmadi.com

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      The rc file is used to apply version, vendor, author to an exe, not for have the administrator privilege. To use rc file please add RESOURCES += ResourceFile.qrc to the pro file.
      I normally use innosetup. When I install my application on Windows 7 for example, Windows asks me to confirm.

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

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

        Thanks for the reply but if you take a look at "this":http://stackoverflow.com/questions/10802889/run-the-qt-application-as-administrator-on-windows and the links referenced here you can see that Admin privileges can be definitely achieved using manifest file.

        I'll admit Innosetup is also a good choice but I want to use QTIFW.

        If I find an answer I'll share it here.

        Thou shalt programme
        http://www.amin-ahmadi.com

        1 Reply Last reply
        0
        • A Offline
          A Offline
          amahta
          wrote on last edited by
          #4

          I found a solution which I shared in another thread that was also created by me.
          For acquiring Admin Rights in Qt Installer Framework, "THIS!":http://qt-project.org/forums/viewthread/35854/ would be the answer.
          As for Admin Rights in applications created using Qt Creator (and of course for Windows platform) you can check out the explanations in "THIS ONE":http://blog.strixcode.com/2010/08/embedding-application-manifest-and.html
          There is also sample codes in there which can be modified to meet your needs.

          Thou shalt programme
          http://www.amin-ahmadi.com

          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