Good Afternoon,
Under Windows 7, I need to be able to disable the UAC prompt for a single application. I did a Google search on this and found a number of possibilities.
I was wondering if anyone has done this? If possible the solution would be able to be run through a program without user intervention.
Any thoughts?
Thanks,
Bob
You can do it!!!
See here:
www.mydigitallife.info/how-to-disable-and-turn-off-uac-in-windows-7
The easy way is for programmer to use the regestry...
Good Afternoon,
Under Windows 7, I need to be able to disable the UAC prompt for a single application. I did a Google search on this and found a number of possibilities.
I was wondering if anyone has done this? If possible the solution would be able to be run through a program without user intervention.
Any thoughts?
Thanks,
Bob
Bernd, that web page describes how to disable UAC for the entire system, not how to prevent the UAC prompt for a single application.
Bob: You don't say whether your application needs to run elevated (i.e., with administrative privilege). If it needs to run elevated, and UAC is enabled on the system, and the user executing the application is subject to UAC (has a split token), then they'll get the prompt - either the default click-to-run prompt, or the stronger select-account-and-enter-password prompt, depending on system settings.
That's the point of UAC - to require user acknowledgment when running a program with elevated privileges. If you were able to defeat it for individual applications, that would render it useless as a security measure.
If your application doesn't require elevation, but it's getting the UAC prompt anyway, that's probably due to the OYS ("Over Your Shoulder", and yes, that's what Microsoft actually calls it) mechanism. OYS tries to guess when a program needs to be elevated. If the word "install" appears in the program's name, for example, OYS will prompt for elevation.
In that case, it is possible to suppress elevation and UAC. You have to link a manifest to the executable to tell the system that the program doesn't require elevation. It will run with ordinary (non-administrator) privileges, but it won't trigger the UAC prompt.
You don't say anything about how you build and run your application, so I can't provide many specifics. There's a ton of information available from Microsoft about using manifests to control UAC, but I haven't found a single source that explains it clearly from the beginning. You might take a look at the first response to the question here:
social.msdn.microsoft.com/.../preventing-application-elevation-in-vbnet
That provides some links to some helpful material.