Vista, UAC and the ClickOnce Bootstrapper
Image by cocoate.com via FlickrWe
all enjoy being bitten in the ass by that 1 scenario that we never
remembered to test, especially when you’re about to release. My
particular ass biting comes in the form of the ClickOnce
bootstrapper. For those of you who don’t know ClickOnce, the
bootstrapper is the setup.exe that users run in order to install all
your prerequisites and then your application.
It had been working fine, until I remembered to try it on a Vista install with UAC
enabled, which is the default setting. Now, everyone I’ve ever met
disables UAC as soon as Vista is installed, but your average home user
will probably not know it can be turned off and just accept the
insanely irritating thing.
With UAC enabled, the bootstrapper
doesn’t give you a message on launch saying “Hello, we don’t have the
right permissions), no. It gets half way through the installation,
then throws an “Incorrect Function” error, leaving developers pouring
through install logs to try and guess the problem. Needless to say, end
users must not be exposed to this utter lameness.
I’m currently conversing with various MSFT boffins
to see if a resolution can be found, although I’m not hopeful. There’s
a fair bit of ducking and diving going on, which usually indicates
you’ve hit on a shortcoming
If no resolution can be found, the stark truth is that if you need to use the bootstrapper, ClickOnce is entirely incompatible with an out-of-the-box Vista setup.
Edit: I’m wrong. So very wrong. The problem was caused by a corrupt VM. Not ClickOnce.
![Reblog this post [with Zemanta]](archives_files/reblog_e_014.png)

![Reblog this post [with Zemanta]](archives_files/reblog_e_020.png)
