1

How do I detect whether Visual Studio 2012 RTM or Visual Studio 2012 with Update 1 is running using EnvDTE? The DTE.Version contains "11.0" in both cases.

4

1 回答 1

1

Visual Studio 2010 and 2012 put the SP information under the Wow6432Node subtree - e.g. HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\DevDiv\VS\Servicing. However, since VS 2012 Update 1 is not a service pack, the SP value hasn't been incremented.

Possibly the best way to detect if Update 1 is installed is by checking the version of a component you're interested in. For example for Visual C++, check HKLM\SOFTWARE\Wow6432Node\Microsoft\DevDiv\VC\Servicing\11.0\CompilerCore\Version : for RTM it's 11.0.50727; Update 1 is 11.0.51106.

于 2013-03-23T17:01:21.497 回答