Running Extensions on Windows Vista
Both Visual Studio and the Visual Studio SDK can be installed on Windows Vista only by a user who has elevated administrative credentials. For more information, see Visual Studio on Windows Vista.
The devenv.exe command-line switches /installvstemplates and /associatefiles require administrative permissions for correct operation. Invoking these commands without the appropriate permissions could cause data loss.
Open a command window as an administrator and then start devenv.exe with the appropriate command-line switch.
You can program an executable file built in Visual Studio 2010 to prompt for administrative credentials by setting the UAC manifest in the portable executable header. For more information, see Windows Vista Application Development Requirements for User Account Control Compatibility on the Microsoft Download Center Web site or Developer Best Practices and Guidelines for Applications in a Least Privileged Environment on the Windows Vista Developer Center Web site.