Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Permission issue with installed app on windows
QtWS25 Last Chance

Permission issue with installed app on windows

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 2.4k Views
  • 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.
  • M Offline
    M Offline
    mirswith
    wrote on last edited by
    #1

    I am not sure if this is a Qt or NSIS question, maybe a bit of both?

    I have an installed app and the exe does not have permissions to create a file in it's installation folder (within program files). Is this something I can get around in Qt or does anyone know how I would go about solving this?

    Thanks.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      The user executing the program need the rights to write into that directory. Most probably you need admin privileges to do so. There are no Qt builtin means to extend privileges, you will have to resort to windows specific APIs to achieve this.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • G Offline
        G Offline
        giesbert
        wrote on last edited by
        #3

        Since Windows 7 (or also Vista?) Program Files is a folder where you need admin privileges tow write to. This folder is not meant to keep app data, only install data.

        Nokia Certified Qt Specialist.
        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mirswith
          wrote on last edited by
          #4

          Ok, that is good to know. Guess it is time to move my data files off to the users home directory. Thanks.

          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