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 8209415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:42:49+00:00 2026-06-07T09:42:49+00:00

Basically, I have an exe app that is installed with priviledges (as in, the

  • 0

Basically, I have an exe app that is installed with priviledges (as in, the user presses the “Allow” button in Vista/Win7 UAC check), then the application starts and sets itself to auto-run so that the application will automatically restart again once the computer is rebooted (all done while elevated). The autostarting is requested by user, and is not enforced upon them.

This reboot instruction is set in the registry, in the CURRENT_USER section as below:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

The problem is, when the computer reboots, Windows will not let it execute unless the user re-authorizes it as an elevated process again (namely, a taskbar icon pops up in the tasktray saying the starting of my EXE/process was prevented, and the user is given the ability to launch the blocked app using menus on the icon in the tasktray).

I would like to add that I have the manifest file integrated into the EXE, so there is no problem on that end, and it registers its intentions accurately in the XML file.

Why does Windows do this by design? If an exe was authorized once, shouldn’t that imply that it be authorized permanently?

But the main question I would like to ask is, how do I get around this? Imagine my users having to do this every single time the application needs to autorun?

Also, I would like to avoid the whole “your app shouldn’t be running in elevated mode in the first place” argument/discussion, or the “no app needs elevated priviledges, you need to rewrite it” discussion. I can assure you that my app needs elevated priviledges (unfortunately). More details below if interested, not necessary to interpret or understand the question in this post, but included because I know some people will ask)…

Additional Unnecessary Reading:

…In fact, it requires it in 87% of all launches (depending on what users do), and for the 13% of times were it is not needed (that’s, 13% of all launch instances, not 13% of users), I am developing a second exe where only that is launched first, and once an elevated feature is needed/requested, the elevated portion loads, saving 13% of all launches from hassling people with UAC nag, I will only have this ready by 2013. I’m going to all this work to split up functions that don’t logically belong in different areas of the application – even with all this work, the problem I mentioned above does not get resolved (but rather, very slightly minimized or deferred).

  • 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-07T09:42:51+00:00Added an answer on June 7, 2026 at 9:42 am

    I’m not sure why this was tagged with any programming language, and since it is really a ServerFault question it doesn’t even belong here as far as I can tell.

    The normal way to handle this is via Task Scheduler though, using the Run with Highest Privileges option. There are several published descriptions of the process involved, such as the old one at Make Vista launch UAC restricted programs at startup with Task Scheduler.

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

Sidebar

Related Questions

Basically, let's say that I have a batch file that calls myapp1.exe and myapp1.exe
I basically have a program that filters records from one excel file to another
I basically have 7 select statements that I need to have the results output
I have a program that accepts a Cmd command as a command argument. Basically
I have an application that runs hosted under the w3wp.exe process. While debugging, I
Basically I have this server app I built in vc#, and for some reason
Okay, let's say that I have b.exe, which takes a string argument. I want
I have simple code that basically opens mappoint and imports addresses into it then
I've got a Qt app that I need installed on a customers computer, which
I have a WPF Application basically the exe is a loader for the application

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.