HolidayBuyer's Guide

Windows Vista forum

General discussion

How to turnoff UAC programatically

by Raghavender123 / June 4, 2008 1:37 PM PDT

Hi everyone
I am trying to know how to turnoff UAC programatically i.e. i develop applications in vb6.0, the application was working fine in xp, but when we distributed to vista they have problems in registering dll's.
How can i turn off UAC through the vb6.0 application.
Thank You

Discussion is locked
You are posting a reply to: How to turnoff UAC programatically
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: How to turnoff UAC programatically
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
uac can't be turned off programatically
by ramarc / June 4, 2008 1:39 PM PDT

uac functions at level above the app/installer and can only be disabled by the administrative user.

Collapse -
Actually they can...
by John.Wilkinson / June 4, 2008 11:43 PM PDT

Provided the user running the program is an administrator, which is somewhat concerning considering it could be utilized by a malicious program before it delivers its payload. (See TweakUAC)

However, the recommended solution is to place a requestedElevationLevel tag in the application's manifest file, which I know is supported by VB .NET but hazy on VB6.

John

Collapse -
uac can't be turned off by any program being installed
by ramarc / June 5, 2008 6:15 AM PDT
In reply to: Actually they can...

or registering dlls and such.

the user would already have to have configured the pc to make uac less annoying.

Collapse -
Think if you integrated TweakUAC...
by John.Wilkinson / June 6, 2008 12:53 AM PDT

TweakUAC is one of a handful of applications know that has the ability to disable UAC. They all prompt the user, but there's no enforcement of that request...they could just as easily do it without prompting the user. If someone integrated that functionality into the installer for another program they could effectively bypass UAC. There would be a few other 'tricks' necessary to make it work smoothly and cover the tracks, but it's entirely possible, and that's what worries me.

John

Collapse -
TweakUAC provokes a UAC confirmation
by ramarc / June 6, 2008 1:51 AM PDT

when it is launched. so, it does not circumvent the UAC.

Collapse -
Right, but...
by John.Wilkinson / June 6, 2008 2:01 AM PDT

If the application is trusted and you grant it elevated privileges it can then disable UAC without any further prompts. The user must make that first approval, but with the way Microsoft has hyped UAC I think they should have prevented any third-party application from disabling it, regardless of trust. (Similar to how they decided to block unsigned drivers under Vista x64 whereas x86 users are still given the choice to install or not.)

John

Collapse -
right, but
by ramarc / June 6, 2008 3:22 AM PDT
In reply to: Right, but...

the original poster wanted to know how to disable the UAC while performing an installation without the user having to do anything. that can't be done. the user's going to have to deal with the UAC either during the installation or by running the installer as administrator (which will require a UAC confirmation) or turning off UAC for the PC -- anyway you cut it, the user has to deal with the UAC.

Collapse -
Ah, I see what you mean...
by John.Wilkinson / June 6, 2008 6:09 AM PDT
In reply to: right, but

The way I read the original post I thought UAC was blocking the registration of dlls even when the user gives approval, which has been known to happen. You may be right, though, with it being a matter of user convenience rather than a UAC 'glitch.'

John

Collapse -
Have You Tried 'Run As Administrator'?
by Grif Thomas Forum moderator / June 4, 2008 2:07 PM PDT

If you're using a specific program, you might be able to get away by RIGHT clicking on the program, then choose "Run As Administrator". It might help accomplish what you need.

Hope this helps.

Grif

Collapse -
thanks
by Raghavender123 / June 4, 2008 11:45 PM PDT

Thanks for your reply..
When i am running as administrator and install the software in vista its installing fine, but the dlls are not registering.. I need to turn off the uac and register the dll's. Lot of vista users dont know how to register dll's.
So is there any way we can do it.
Thank you again..

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

HOLIDAY GIFT GUIDE 2017

Cameras that make great holiday gifts

Let them start the new year with a step up in photo and video quality from a phone.