from distutils import msvccompiler
root = HKEY_CURRENT_USER
version = msvccompiler.get_build_version()
root, 'Software\Microsoft\VisualStudio\%0.1f\Setup\VS' % version, 'productdir'
root, 'Software\Microsoft\VisualStudio\%0.1f\Setup\VC' % version, 'productdir'
root, 'Software\Microsoft\.NETFramework', 'installroot'
root, 'Software\Microsoft\NET Framework Setup\Product\*', 'version'
root, 'Software\Microsoft\.NETFramework', 'sdkinstallrootv1.1'
root, 'Software\Microsoft\VisualStudio\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories' % version, 'path dirs'
root, 'Software\Microsoft\VisualStudio\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories' % version, 'include dirs'
root, 'Software\Microsoft\VisualStudio\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories' % version, 'library dirs'