Goddamn Vista User Account Control
Hello kind people,
Can someone in the know explain this to my tiny brain please.
I am using Vis Studio 2005 and have written a simple nooby iTunes interface program. Not that it's relevant, but it's in C# and uses the iTunes COM interface.
It's fine. It works. It dumps out a few tracks from my iTunes library. Whoop-di-doo!
However...
...being the hardened corporate IT person that I am, I always run my home PC in standard-user mode. I always have. Stood me in good stead, so it has. And I still do (even in Vista).
Now. When I try to run the said program (above), *PAAARP*...this program requires elevation. And then I have to enter my administrator account credentials...(which then loads the administrators iTunes library. Nice one...thanks for that Microsoft, very useful).
So I find myself thinking...well what, in the name of all that is holy, does my program need admin privilege for? It doesnt bloody do anything. I've written a hundred programs before without this issue.
After dicking around with many an option, I got nowhere. So I decided to find out what in my app was causing the admin elevation requirement. So I turned off User Account Control altogether in the hope that, when I ran as a standard user, I would get some access denied message, or exception I could work with.....
...but no. The bugger worked just fine. No hint of a problem.
So, if this program can access all that it needs to (and bear in mind everything is locked down here), why does it ask me for admin password when UAC is switched on? Does anyone know?
Ahhh...it's good to get that off my troubled chest.
Sq!
Re: Goddamn Vista User Account Control
Re: Goddamn Vista User Account Control
When you turn off the UAC, it means that you are telling Windows, run what ever permissions apps need and don't bother with asking for elevated permissions, just doit. If the control you were using was COM, and the app .NET based... that might have been what it was.
Don't know. I found the UAC annoying enough that I usually turn it off as soon as I can on Vista. With Win7, it got better, year and a half later and I still have my Win7 UAC turned on.
-tg
Re: Goddamn Vista User Account Control
Don't leave home without it. Search for ELEVATE.VBS, which will do what it implies.