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.


sky777 on : sky777 kiosk

Show preview
blog topic


Display comments as Linear | Threaded

Coral on :


buy assignment uk on :

The important piece of the best voted answer is a few sections in length, and spreads the means for Windows 7, 8, and 10. The means are distinctive for 7 than for 8 and 10. For this situation, the best, IMO, would have been to check this inquiry as a close copy of that answer. Indeed, you can without much of a stretch invert run as admin settings, yet the fact is that it's anything but difficult to overlook that you're running as admin. Simply underlining the need for informed choice.

Lemon Juice on :

Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me.

Lemon Water on :

Hi, I log on to your new stuff like every week. Your humoristic style is witty, keep it up

Lemon Balm on :

I read that Post and got it fine and informative. Please share more like that...

CBD öl on :

This was incredibly an exquisite implementation of your ideas

rocket espresso on :

Nice post. I’m a regular visitor of your blog and appreciate you taking the time to maintain the nice site.

CBD on :

Very awesome!!! When I seek for this I found this website at the top of all blogs in search engine.

Mafia City on :

No matter what you choose, these trials are necessary for you to become a true Godfather! Take Over Territories, Rules Of Mafia,

Add Comment

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