views:

29

answers:

0

I have a process running with elevated permissions (defined through manifest file /asAdministrator) and would like to launch an out-of-process Visual Studio instance with elevated permissions too. Currently VS is launched for OLE Automation purposes with the code below:

Type type = System.Type.GetTypeFromProgID(dteVersion);
DTE dte = (DTE)System.Activator.CreateInstance(type, true);

Does anyone has any idea how to get the DTE running with elevated permissions too? The reason for elevated permissions is that the application needs access to the Program Files folder, which is protected under Vista and Windows7.

Many thanks, Slavcho