Programmatically retrieve Visual Studio install di

2020-02-09 06:44发布

I know there is a registry key indicating the install directory, but I don't remember what it is off-hand.

I am currently interested in Visual Studio 2008 install directory, though it wouldn't hurt to list others for future reference.

14条回答
Root(大扎)
2楼-- · 2020-02-09 07:46

Note that if you're using Visual Studio Express or Visual C++ Express the keynames contain WDExpress or VCExpress, respectively, instead of VisualStudio.

查看更多
疯言疯语
3楼-- · 2020-02-09 07:48

Aren't there environment settings?

I have VCToolkitInstallDir and VS71COMNTOOLS although I'm using Visual Studio 2003, I don't know if that changed for later versions. Type "set V" at the command line and see if you have them.

查看更多
登录 后发表回答