Results 1 to 2 of 2

Thread: How to give the full permission to the static build exe?

  1. #1
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Thanks
    10
    Thanked 13 Times in 12 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default How to give the full permission to the static build exe?

    How to give the full permission to the static build exe? I would like to give full permission and privileages to the application which accesses hard drive, how to give that during static building in commercial version?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to give the full permission to the static build exe?

    It would help if you told us what you want "full permission" to do and in what environment. Permission to perform certain actions is granted by the operating system not by Qt, and is granted different ways depending on what you actually need.

    On Windows you can embed an application manifest requesting the application run as an administrator. When you do this your program will pop up a UAC permission prompt when run, and will only run if permission can be/is granted. If you don't want the prompt, e.g. for a daemon process, then you must arrange for Windows the start the application as a privileged user: this is something you do in your installer and will require administrative privileges itself. If you only want "full permission" to a certain directory then that can be arranged by your installer.

    I suspect you either have to run as an Apple-y root user, use something like sudo, or set file permissions on OS X. Perhaps someone else can enlighten us how you do it in OS X.

Similar Threads

  1. Build static QT + static SSL problem.
    By makzimi in forum Qt Programming
    Replies: 3
    Last Post: 23rd April 2012, 23:45
  2. Replies: 1
    Last Post: 13th January 2010, 23:35
  3. Moving from QT 4.5 shared build to QT 4.5.2 static build
    By extrakun in forum Qt Programming
    Replies: 0
    Last Post: 26th October 2009, 09:49
  4. Can i build a static exe?
    By coder1985 in forum Qt Programming
    Replies: 3
    Last Post: 11th June 2008, 16:18
  5. Problems with static build
    By KaptainKarl in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd August 2007, 10:46

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.