John said:
I right-click on a .sln ( Visual Studio solution file ) to "Send to >
Desktop ( create shortcut )" ...
However, on my shortcut, right-click Properties > Advanced reveals that
the "Run as administrator" checkbox is disabled ...
How to create a shortcut that "Runs as administrator" the target
executable ?
You cannot set it on a .sln file for VS, as it's not an executable file.
If you need to Run As Administrator with VS for a VS solution within the
VS IDE, then you set the Run As Administrator on the VS short-cut that
points to the location below. That would be the icon that looks like an
8 turned on its side, which is the VS short-cut icon and using the
Advanced button to permanently set configuration.
"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
You start VS up off of its short-cut, it's always set to Run As
Administrator and you create new a project, solution or Web site or open
as existing one, then you have the power of using VS with Run As
Administrator.
You right-click an exe that was complied/built in the *bin* directory of
a VS solution and send the short-cut to the desktop, then you can set
Run As Administrator on that exe.