Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: UAC not asking for system change confirmation

18 Apr 2014   #11
andrew129260

Windows 10 Pro
 
 

Could be a corrupt user profile.
Since you know what your doing, I am guessing I don't need to link to tutorials.

If you enable the built in admin account, and set UAC to the highest setting (always notify) and restart, and then create a new user profile does the issue exist? Does the issue exist on a new created admin account or standard account?

But if you know what your doing I am assuming you would have already tried that.

Am I correct?


My System SpecsSystem Spec
.
18 Apr 2014   #12
trims30

win7/64 and win8/64
 
 

UAC is Always Notify
Rebooted
Logged in as myself
Created new Admin User
Logged Off
Logged in as new Admin User
Opened my ConfigurationEditor Program - No UAC Message
Made change to setup item stored in registry and saved it. - No UAC Message
Looked at registry and confirmed that changes were made and saved.
Isn't UAC supposed to give an alert in this situation?

Logged off and came back in using Guest Account
Did same sequence of events as above - still no UAC Message and was able to save change to registry.

Logged off Guest and Logged back in as myself
Ran Configuration Editor Program using RunAs Administrator and got the UAC Prompt.
Ran Again without As Admin - No UAC Prompt
Changed name of Configuration Editor.EXE to SETUP.EXE - Ran it and got UAC Prompt

Conclusion - UAC Warning comes up when using RunAs Administrator or naming Program Setup.exe, MyInstall.exe or something else to do with setup or install in file name.

Still have no answer to why a program that messes with the registry can get by UAC detection.
My System SpecsSystem Spec
18 Apr 2014   #13
andrew129260

Windows 10 Pro
 
 

My System SpecsSystem Spec
.

20 Apr 2014   #14
Alejandro85

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by trims30 View Post
Still have no answer to why a program that messes with the registry can get by UAC detection.
Because messing with the registry has nothing to do with UAC, and there is nothing like "UAC detection". It simply don't works like that.

UAC only prompts for elevation when something explicitly request elevation. It does NOT interferes with program execution and does NOT tries to guess what "changes" a program is doing. Contrary to what the Windows help texts says, UAC has really nothing to do with changes in the computer, and UAC will not notify when something tries to do changes in global areas. I suppose that those completely misleading texts are there for non-tech people, but you, as a programmer, must use the proper documentation to know how UAC really works and how to use it effectively.
The bunch of links that andrew129260 posted are quite good and accurate, they'll help you in understanding how to solve the problem.

To give a quick and dirty resume on what does trigger UAC prompt, from memory, I know those:
  • A process is explicitly started "as administrator" by the calling process. The "Run as Administrator" in Windows Explorer context menu does this, allowing any program to be elevated
  • The executable you're launching is manifested as "RequireAdministrator" in its security settings, in which case Windows will always try to elevate, regardless of the calling program asking for it or not. If your configurator program requires to be always elevated, this is what you must do (and why I asked previously, but it's quite evident by now that you haven't done so).
  • If the executable compatibility settings say so, it will also prompt for elevation on each execution, something like the first case but automatically
  • If Windows is configured to autodetect "installations" (by default it does so), any executable named like "setup", "install" and a few others I don't remember will also be elevated regardless of anyone explicitly asking for it. This is your case and why you saw that prompt. You should also never rely on it, as it's a backward compatibility feature (to allow older installers to elevate without knowing about UAC).

It's also worth noting that UAC elevation takes place only when the process is being created, and then never more, so that a program cannot be changed to run as admin if it didn't started as it from the beginning. Programs that need to elevate in the middle of an operation need to launch a second, elevated, process to do all the admin-only work.
My System SpecsSystem Spec
20 Apr 2014   #15
oreo27

Windows 7 Ultimate x64 Service Pack 1
 
 

Quote   Quote: Originally Posted by Alejandro85 View Post
Quote   Quote: Originally Posted by trims30 View Post
Still have no answer to why a program that messes with the registry can get by UAC detection.
Because messing with the registry has nothing to do with UAC, and there is nothing like "UAC detection". It simply don't works like that.

UAC only prompts for elevation when something explicitly request elevation. It does NOT interferes with program execution and does NOT tries to guess what "changes" a program is doing. Contrary to what the Windows help texts says, UAC has really nothing to do with changes in the computer, and UAC will not notify when something tries to do changes in global areas. I suppose that those completely misleading texts are there for non-tech people, but you, as a programmer, must use the proper documentation to know how UAC really works and how to use it effectively.
The bunch of links that andrew129260 posted are quite good and accurate, they'll help you in understanding how to solve the problem.

To give a quick and dirty resume on what does trigger UAC prompt, from memory, I know those:
  • A process is explicitly started "as administrator" by the calling process. The "Run as Administrator" in Windows Explorer context menu does this, allowing any program to be elevated
  • The executable you're launching is manifested as "RequireAdministrator" in its security settings, in which case Windows will always try to elevate, regardless of the calling program asking for it or not. If your configurator program requires to be always elevated, this is what you must do (and why I asked previously, but it's quite evident by now that you haven't done so).
  • If the executable compatibility settings say so, it will also prompt for elevation on each execution, something like the first case but automatically
  • If Windows is configured to autodetect "installations" (by default it does so), any executable named like "setup", "install" and a few others I don't remember will also be elevated regardless of anyone explicitly asking for it. This is your case and why you saw that prompt. You should also never rely on it, as it's a backward compatibility feature (to allow older installers to elevate without knowing about UAC).

It's also worth noting that UAC elevation takes place only when the process is being created, and then never more, so that a program cannot be changed to run as admin if it didn't started as it from the beginning. Programs that need to elevate in the middle of an operation need to launch a second, elevated, process to do all the admin-only work.
That's quite informative. Thanks

I did think of something. I recall that registry keys have permissions too right?

When I try to access a folder that is owned by another user, a UAC prompt appears and I have to give permission before I can do changes to these folders. Do registry keys work in the same fashion? It could be the reason that some registry keys require it, while some don't. I recall that a Windows Explorer window can request admin privileges after it's been opened in this scenario.
My System SpecsSystem Spec
Reply

 UAC not asking for system change confirmation




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
PC Build Confirmation
Goodmorning! First of all, I would like to thank, and express my gratitude for all the help that I have recieved on this forum. You guys truly are great, and have helped me out of some rough spots. :p To inform you all, (thanks to you) I am attempting my second batch of PC builds!...
PC Custom Builds and Overclocking
750GB HDD need confirmation
http://i.imgur.com/tXPNd.png Is it correct or not? For a 750GB HDD, it shows only 279gb for C drive.
Hardware & Devices
How do I change the admin confirmation enter password box for guest
Hi, I would like to change the login prompt of administrators for the guest account to make them input the username and password, and not just the password automatically showing the user my account picture and username. When I mean the prompt box I mean the one where they try to uninstall a...
General Discussion
BSOD driver confirmation
Hi. Just got bsod for the first time since re-installing windows 7. Attached is my jcgriff toolfile. Could someone please check what caused the problem? I believe it's my network card driver (netr6164.sys) but I would like someone to confirm it before i try and correct the problem. Thanks in...
BSOD Help and Support
I need confirmation regarding customization
hello.. i've been browsing a thorough research on how to install a custom 3rd party themes on my laptop.. i did a few research such as how to make a restore and set a backup system just in case something go WRONG :confused: this is because installing custom themes involve "modification" of a few...
Themes and Styles
Aero input lag confirmation?
I was wondering if there has been much testing into Aero creating large amounts of input lag. A simple way to test is to have aero enabled and do a basic reaction time test and then repeat the test after disabling aero (system properties > advanced > performance > settings > "best performance"). ...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:25.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App