I\'ve created a VSPackage
which should copy some XML schema files to Visual Studio\'s installation path: %VS install path% \\Xml\\Schemas
.
Finally managed to find the installation path with the following code:
var test = ((EnvDTE.DTE)ServiceProvider.GlobalProvider.GetService(typeof(EnvDTE.DTE).GUID)).FullName;
VISUAL_STUDIO_INSTALLATION_PATH = Path.GetFullPath(Path.Combine(test, @"..\..\..\"));
Also for getting the Version of the running Visual Studio:
EnvDTE.DTE dte = (EnvDTE.DTE)Package.GetGlobalService(typeof(EnvDTE.DTE));
VISUAL_STUDIO_VERSION = dte.Version;