Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Permission issue with installed app on windows

    Installation and Deployment
    3
    4
    2191
    Loading More Posts
    • 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
      mirswith last edited by

      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 Reply Quote 0
      • G
        goetz last edited by

        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 Reply Quote 0
        • G
          giesbert last edited by

          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 Reply Quote 0
          • M
            mirswith last edited by

            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 Reply Quote 0
            • First post
              Last post