code: def VSInstallDir(self):
          
          # Default path
          name = 'Microsoft Visual Studio %0.1f' % self.vc_ver
          default = os.path.join(self.ProgramFilesx86, name)
  
          # Try to get path from registry, if fail use default path
          return self.ri.lookup(self.ri.vs, '%0.1f' % self.vc_ver) or default
docs: Microsoft Visual Studio directory.