Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8294429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:12:49+00:00 2026-06-08T14:12:49+00:00

How do you set a program to ask for elevation upon execution? I’ve asked

  • 0

How do you set a program to ask for elevation upon execution? I’ve asked around here and there, but haven’t gotten an answer. I’m not sure how I would do this, but the program that i want to write, needs permissions to be run.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T14:12:50+00:00Added an answer on June 8, 2026 at 2:12 pm

    Security models are rather platform-specific. Qt does not AFAIK address this sort of thing. (Case in point: the Qt Creator installer itself choked when I didn’t run it as root.)

    You’ll presumably need to make native calls or interact with some daemon designed for the purpose. Often easiest to try whatever it is you think you should be able to do, and check for failure, and if you can’t do what you want then ask the user to explicitly re-run with higher privileges.

    Linux:

    Best way elevate the privileges programmatically under different versions of Linux?

    Windows:

    http://msdn.microsoft.com/en-us/magazine/cc163486.aspx

    Mac:

    Escalate App Privileges Programmatically OS X

    (Note: Often if you have to ask a question about something like this, there may be a better way to do whatever it is you’re trying to do. Consider posting a question that is more general about what you want, and you might get suggestions on a way to do it more cleanly.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my batch script: @echo off cls set SOURCE=svn://vcrep/UXP/ercpac/trunk/ set SVN=C:\Program Files\TortoiseSVN\bin %SVN%\TortoiseProc.exe /command:update
Is jumping around the registry the best way to ask what program path opens
I need my application installer set the program to auto-startup for all users. Then
I'm trying to multithread something and i have my program set up such that
I have the below command line arguments set for the program. argument proc is
My program requires several floats to be set to a default number when the
The program I've written is set to only accept positive integers as input. If
This program I use has it's own variables to set when you run it,
I have a program with a set of input and a set of out
This is the program I wrote: set serveroutput on; declare b empl.name1%type; r varchar;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.