Start VS2012 .sln and .proj files always as Administrator on Windows 8
Problem description
I'm using windows 8 and visual studio 2012, and i had some strange problems related to permission.
If visual studio runs under non-administrator rights, it cannot do some compile tasks like "Register for COM interop"
Step by step solution
Start a VisualStudio command prompt
Start a VisualStudio command prompt and navigate it to the place where devenv.exe is located. On my System this is C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
Create a manifes file from devenv.exe
Execute the following command:
mt -inputresource:"devenv.exe" -out:devenv.exe.manifest
This will create the file devenv.exe.manifest
Edit the content of devenv.exe.manifest
Change the level value of requestedExecutionLevel from asInvoker to requireAdministrator
Write the manifest back into the devenv.exe
Execute the following command in the visual studio command prompt:
mt -outputresource:devenv.exe -manifest devenv.exe.manifest
Check whether visual studio 2012 starts as administrator
Just double click any .sln or .proj file, and check whether visual studio starts as administrator or not.





Comments
Display comments as Linear | Threaded
Coral on :
You are so cool! I do not suppose I've read anything like that before. So nice to discover another person with some unique thoughts on this topic. Really.. thanks for starting this up. This web site is one thing that is needed on the internet, someone with some originality!
Tamara on :
. Me ha gustado lo que he leido
coach on :
I am in fact grateful to the owner of this web page who
has shared this great piece of writing at
here.
_____ ___ on :
Nice blog here! Also your web site loads up very fast!
What host are you using? Can I get your affiliate link to your
host? I wish my website loaded up as quickly as yours
lol
hp laptops on :
Such an enjoyable read, and fantastic comments
workshop on :
Howdy! Would you mind if I share your blog with my myspace group?
There's a lot of people that I think would really enjoy your content. Please let me know. Thank you