Skip to content

Start VS2012 .sln and .proj files always as Administrator on Windows 8

VS2012 non admin 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" Photo & Video Sharing by SmugMug

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.

Trackbacks

먹튀사이트 on : 먹튀사이트

Show preview
blog topic

Comments

Display comments as Linear | Threaded

Lucky Star Casino on :

It's much more difficult to verify a freelance translator's service quality or previous experience, apart from what they claim.

Global Education on :

Thank you for this post, this was a new perspective to me. Global Education builds up understudies' aptitudes to draw in with their global friends and features move understudies can make as residents of the world.

Professional Logo Design on :

Thank you for sharing these details about the VS2012 non-admin problem. I certainly love this website. Thanks again. Logozel is providing you the best Professional Logo Design service with customer satisfaction and at a good price value. Check out our website for more details.

red pepper cases on :

My rather long internet look up has at the end of the day been compensated with pleasant insight to talk about with my family and friends.

LakewoodFencing on :

Excellent idea. Instead of opening the program as admin which sometimes doesn't work why not make it always as admin. Thank you for this. Anyway, please reach out if you're seeking a reliable fencing contractor in Lakewood, Colorado.

retail display solutions on :

RightSource is offering you the best services of retail display solutions to nurture overall sales of your business. We have clients across the markets of GCC, Levant and North Africa which increases our reliability and authenticity. Our availability makes us the leading retail display design company in Dubai.

Daniel Russo on :

Great post, thanks for sharing. This is one of my favorite blogs

johnb6174 on :

It proved to be Very helpful to me and I am sure to all the commentators here!

Anonymous on :

Model United Nations encourages brainstorming and team-participation to create a generation of thoughtful leaders.

Longmonttreeservice on :

I just have a quick question. What difference does it make if you'll just right-click the VS icon and select admin?

Add Comment

You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.
Markdown format allowed
Form options