如果你在安装VS2005后更改了My Document的目录,VSI安装时会出现如下错误:Installation stopped because the directory for the ProjectType value did not exist. The project type is invalid for your installation of Visual Studio.
这是因为VSI文件仍往你原来的My Document文件目录写文件,却在建子目录时建在了新的My document目录下,所以会出现错误,解决方案:
1、把我的文档目录更回默认值
2、手动在黓认的我的文档目录下建立以下目录
C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Templates\ItemTemplates\Visual C#
C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Templates\ItemTemplates\Visual Web Developer
C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual C#
C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Web Developer