---
title: "Windows 7 无法安装 Visual Studio的原因及解决方案  "
author: "dinghy"
date: "2010-03-03T21:49:42Z"
tags: []
categories: ["操作系统"]
slug: "windows-7-visual-studio"
draft: false
lastmod: "2010-03-03T21:49:42Z"
id: 607264
url: "https://dingis.iteye.com/blog/607264"
---

Windows 7 无法安装 Visual Studio的原因及解决方案

在**Windows7** 中安装Visual Studio时停止，并发生**error** 1935 错误，无法注册程序集等

参考：

已经确定这不是Windows 7的问题，不知道是不是ArcGIS设置了这个限制。

[http://forums.esri.com/Thread.asp?c=93&f=1148&t=287391#900804](http://forums.esri.com/Thread.asp?c=93&f=1148&t=287391#900804)[](http://www.geo-spatial.net/csk/arcgis9/Articles_AddArticle.aspx)

症状：

Symptoms -

1\) When installing applications you receive **error** messages involving OpenMP and the installation fails with a rollback:

Product: Microsoft Visual C++ 2005 Redistributable -- **Error** 1935.An **error** occurred during the installation of assembly  
'Microsoft.VC80.OpenMP,type="win32",version="8.0.50727.762",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86"'. Please refer to Help and Support for more information. HRESULT: 0x800736FD. assembly interface: IAssemblyCacheItem, function: Commit, component: {1E507087-0819-45E0-A01F-C8B3B9A1E18E}

2\) Installing applications or trying to run Windows Update causes the following entries to be added to the System log in Event Viewer:

The server {752073A1-23F2-4396-85F0-8FDB879ED0ED} did not register with DCOM within the required timeout.

The Windows Modules Installer service terminated with the following **error**: Insufficient system resources exist to complete the requested service.

Application popup: Windows - Low On Registry Space : The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored.

3\) When trying to make changes to your Windows configuration the "Turn Windows Features On and Off" dialog box is empty.

4\) Open the %windir%\\logs\\cbs directory and the cbs.log file. Look for failures concerning the TrustedInstaller initialization. The **error** might look something like this:

2009-08-27 00:05:20, Info CBS Starting TrustedInstaller initialization.  
2009-08-27 00:05:20, Info CBS Loaded Servicing Stack v6.1.7600.16385 with Core: C:\\Windows\\winsxs\\x86\_microsoft-windows-  
servicingstack\_31bf3856ad364e35\_6.1.7600.16385\_none\_0935b76c289e0fd5\\cbscore.dll  
2009-08-27 00:05:20, Info CBS Failed to load the COMPONENTS hive from 'C:\\Windows\\System32\\config\\COMPONENTS' into registry key 'HKLM\\COMPONENTS'.

\[HRESULT = 0x800705aa - ERROR\_NO\_SYSTEM\_RESOURCES]  
2009-08-27 00:05:20, Info CBS Failed to load WCP DLL. \[HRESULT = 0x800705aa - ERROR\_NO\_SYSTEM\_RESOURCES]  
2009-08-27 00:05:20, Info CBS Failed to initialize the Core DLL: C:\\Windows\\winsxs\\x86\_microsoft-windows-  
servicingstack\_31bf3856ad364e35\_6.1.7600.16385\_none\_0935b76c289e0fd5\\cbscore.dll [HRESULT = 0x800705aa -  
确认问题：

Test -

If you are having one or more of the symptoms listed above, one or more of following tests should fail to confirm the problem:

1\) Run the .NET Framework Setup Verification Tool ([http://blogs.msdn.com/astebner/pages/8999004.aspx).](http://blogs.msdn.com/astebner/pages/8999004.aspx%29.) You should have 3 Frameworks listed (2.0 SP2, 3.0 SP2, and 3.5 SP1).

Validate each one starting with 2.0 SP2, then 3.0 SP2, and lastly 3.5 SP1. The only one that should fail validation is 3.5 SP1.

2\) As a Administrator open a Command Prompt and run "**SFC** /SCANNOW". You should receive a failure regarding the Windows Resource Monitor.

解决方法：

1\) If you are receiving the "Low Registry Space" **error**, set the Registry Size Limit to "unlimited":

HKEY\_LOCAL\_MACHINE\\System\\CurrentControlSet\\Control  
Key: RegistrySizeLimit  
Type: REG\_DWORD  
Value: 0xffffffff (4294967295)

2\) Reboot

3\) As a Administrator open a Command Prompt and run "**SFC** /SCANNOW". The command should complete successfully and if any errors were found, they should be corrected. 

Jim Tochterman  
VP, Research & Development  
Bradshaw Consulting Services, Inc.  
[http://www.bcs-gis.com](http://www.bcs-gis.com/)