1

Closed

Installation of schemas fails due to wrong path

description

When the VS2010 is not installed in the default path ("C:\Program Files\Microsoft Visual Studio 10.0\" on 32-bit Win7) but instead on e.g. "D:\Microsoft Visual Studio 10.0\" the schemas ("...\Xml\Schemas\") would not be found but searched under the default path instead with an error dialog (continue / cancel). As a workaround one could just create that directory but it would be nice to be supported even when the studio is not where one "believes" it would (or should?) be.

No files are attached

Closed Mar 19 at 7:22 PM by EWoodruff

I'm going to put the location information in the configuration file so that it can be updated to handle new Visual Studio versions without having to rebuild the installer itself. This will solve the issue as you'll be able to modify the configuration file if Visual Studio is installed in a non-standard location and it can't find it.


comments

EWoodruff wrote Feb 8 at 3:05 PM

Yes, that's the environment variable. I missed one "0".

DanyR wrote Feb 8 at 9:25 AM

Oops, it seems that I forgot to set a notification on this, sorry.

I have (typo on your side?) VS100COMNTOOLS=D:\Microsoft Visual Studio 10.0\Common7\Tools\ and will give it another try these days...

DanyR wrote Aug 8 2011 at 5:27 AM

Now it becomes interesting. It is indeed "C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools" which really exists (but I don't know why). But there exists also a directory "D:\Microsoft Visual Studio 10.0\Common7\Tools" where I installed the Studio. There are differences in the time stamps of the files and also the amount (only 16 files instead of >500 at C:\). I just changed the environment setting to my installation directory for good. Thank you.
You should probably use the technique of the VCVarsQueryRegistry.bat in Tools (it exists in both directories here) to get the VSINSTALLDIR instead.

EWoodruff wrote Aug 5 2011 at 5:21 PM

The location is determined getting the path in the VS10COMNTOOLS environment variable and modifying it. What is it set to on your system? In theory, I would expect the schemas folder to be in a similar relative location based on the value in that environment variable. Is that not the case?