Demand UAC Elevation for an Application
The UAC messages can get as annoying as the Apple advertisements suggest, but if you haven't considered UAC in an application that runs on Windows Vista, you might be in for a nasty deployment surprise.
I recently had to write an application that did some swimming around in Active Directory, which obviously requires elevated credentials. I got tired of right-clicking the application and clicking "Run as Administrator". Plus, this was even less discoverable for other users.
The secret to getting Windows Vista to ask the "Cancel or Allow" question is the manifest for the application. Here's the directions I followed to get my application working like a charm:
http://community.bartdesmet.net/blogs/bart/archive/2006/10/28/Windows-Vista-_2D00_-Demand-UAC-elevation-for-an-application-by-adding-a-manifest-using-mt.exe.aspx
Trackbacks
No Trackbacks
Comments
No Comments