11 total posts
uac can't be turned off programatically
uac functions at level above the app/installer and can only be disabled by the administrative user.
Actually they can...
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.
uac can't be turned off by any program being installed
or registering dlls and such.
the user would already have to have configured the pc to make uac less annoying.
Think if you integrated TweakUAC...
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.
TweakUAC provokes a UAC confirmation
when it is launched. so, it does not circumvent the UAC.
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.)
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.
Ah, I see what you mean...
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.'
Have You Tried 'Run As Administrator'?
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.
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..