UAC not asking for system change confirmation

Page 2 of 2 FirstFirst 12

  1. Posts : 4,566
    Windows 10 Pro
       #11

    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?
    Last edited by andrew129260; 18 Apr 2014 at 16:57.
      My Computer


  2. Posts : 5
    win7/64 and win8/64
    Thread Starter
       #12

    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 Computer


  3. Posts : 4,566
    Windows 10 Pro
       #13
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #14

    trims30 said:
    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 Computer


  5. Posts : 521
    Windows 7 Ultimate x64 Service Pack 1
       #15

    Alejandro85 said:
    trims30 said:
    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 Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About 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 12:39.
Find Us