Author: Hi, I am Daniel Moth Introduction: User Account Control is the top compatibility hurdle for some applications moving to Windows Vista. It is relatively easy to comply with some elements of UAC (e.g. embedding a manifest in your app) and with Visual Studio 2008 it is even easier as I show in this video. Relevant blog posts of mine are here and here. Video download: Click on the image to play the video (from a streaming file). If you'd prefer to download the wmv packaged in a zip file, you may do so here.
Hi rsclient
Thank you for the thoughtful comments and questions .
rsclient wrote:I rather thought that the manifest was just another resource -- in which case, why not edit it through the normal resource editing mechanisms instead of via Yet Another Weird Action?
rsclient wrote:And why is this so late? Did the VS2005 team really not know that Vista was coming?
rsclient wrote:And why does the "UAC Options" button in VB.NET mode actually create a file? Isn't that just about the last action that anyone would expect given the labeling on the button?
rsclient wrote:Lastly, this video is grossly mistitled. It's not about making UAC aware apps - the app knows nothing about UAC except for a "magic string" in the manifest. It would be nice to know if an app can detect that it's elevated, or handle the user not running it. But since these apps aren't actually UAC aware at all, that's not possible.
rsclient wrote:It would be nice to know if an app can detect that it's elevated, or handle the user not running it.
Hi Daniel,
There is an issue with auto generating UAC manifest with Visual Studio 2008. It’s hard codes the version and name as follows:
<assemblyIdentity version="1.0.0.0" name="MyApplication.app" />
This is reported to MS but the resolution was not clear:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=290160
What "setting on the project" updates this version? Please let me know. I really need a dynamic way to updating the assemblyIdentity settings as manually updating it for every build is tedious.
Thanks for your assistance with this.