Tigraine

Daniel Hoelbling-Inzko talks about programming

ClickOnce and Vista UAC

Posted by Daniel Hölbling on July 1, 2008

So far I've been using Windows Vista since day 1 it's been released here in Austria and I have been very pleased with the system. Imo Vista has a far worse reputation than it deserves. I really can't think of myself using XP any more .

Also I think that UAC is a very very good think in Windows Vista and really helps secure the computer against malicious programs. If you get over it popping up every 3 clicks while you set up the machine, in running state you hardly see the question any more (except for administrative tasks).
So, I never ever disabled UAC until now.

Why? Because ClickOnce is giving me a hard time.
ClickOnce is automagically working perfectly in XP because it just starts up IE and starts to bootstrap the program. But if the program requires admin rights you're out of luck in Windows Vista.

But, I've found a workaround for ClickOnce when you download the ClickOnce application.

Just start IE as administrator (right click -> run as administrator) and the ClickOnce bootstrapper will eventually use the running instance of IE that has elevated rights.

I haven't had a way to identify why this isn't working 100% of the time, but sometimes this doesn't work either, so your only way out is to temporally disable UAC. Here's how to do it:

First you need to start msconfig through the run dialog (Windows-Key + R -> msconfig -> O)
Now you select the Tools tab and need to scroll down until you find disable User Account Control (or something similar, I'm running a German Windows).

image

Once you've found the line simply press "Launch" / "Starten" and reboot the machine. UAC will be disabled and you can run your ClickOnce application.

I strongly advise you to turn UAC back on once you're done, because running in admin mode compromises your computer's security!

Bottomline:  Try to avoid older ClickOnce applications (newly compiled ones don't have this problem) that require administrative rights to run.

Filed under internet
comments powered by Disqus

My Photography business

Projects

dynamic css for .NET

Archives

more