[Insight-developers] gccxml and msvc9

Brad King brad.king at kitware.com
Fri Aug 7 10:09:31 EDT 2009


Charl Botha wrote:
> 2009/8/7 Brad King <brad.king at kitware.com>:
>> Do you know the registry entry for your sp1?
> 
> I have (on win32, where it's failing):
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\InstalledProducts\KB945140
> with (Default) = "Microsoft Visual Studio 2008 Professional Edition -
> ENU Service Pack 1 (KB945140)"
> 
> and also:
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\InstalledProducts\KB947888
> with (Dfeault) = "Microsoft Visual Studio 2008 Professional Edition -
> ENU Service Pack 1 (KB947888)"

Look in the file

  GCC_XML/VcInstall/vcInstall.cxx

for the code:

  const char* vc9sp1Registry[] =
  {
    // English SP1
    "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\InstalledProducts\\KB948484;",
    0
  };

Add additional entries to this array specifying the other values.
If that works, please send a patch and I'll commit it.

> p.s. On Win64, I have:
> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\InstalledProducts\KB945140
> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\InstalledProducts\KB947888
> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\InstalledProducts\KB948484

Actually these are the same.  Windows uses different 32-bit and
64-bit process "views" of the registry.  The Wow6432Node is
substituted for its parent when viewed by 32-bit processes
while the main SOFTWARE entry tree is seen by 64-bit processes.
Since the VS tools themselves are 32-bit programs their registry
entries appear in the compatibility node.

-Brad


More information about the Insight-developers mailing list