Search code examples
c++windows-7windows-vistauac

How to Disable UAC for my application


Well , when ever I am trying to run my application as administrator I am getting the following error, and whether to allow or not.

If I am running the app directly and not as an administrator then this seems to work. Is there Some thing I need to do to get rid of the UAC , no I dont want user to manually change the UAC settings.

Do I need to tweak registry settings only for my programe or any certificate I need to sign with.

alt text


Solution

  • In general, you can't disable UAC. The goal of UAC is to provide a defense in depth against malware. It would be counterproductive if an Tojan could just disable UAC.

    What you can do is accept that UAC exists, and roll with it. You shouldn't usually run as Administrator, so it's perfectly fine to get a UAC dialog when you do. For instance, Auto Start can be handled as a per-user setting, which means you don't need to be an admin to change that.