当VS2005卸载不干净时
那个恶心……当手动删除一部分文件(也许这部分文件中包括了卸载程序)后,再调用win的卸载程序或360的软件卸载来卸载VS2005,答案是……没办法卸载干净的。想想也是必然的,没了对应的卸载程序当然会卸载不了对应那部分信息,然而再次安装时安装程序首先检测注册表中有没有对应的安装信息,假如检测到有,那你挂了,安装程序自动屏蔽掉已经有注册信息的一部分,只安装被正常卸载的那部分,其实没有被正常卸载的那一部分也不存在了,只不过没有走win的流程,直接手动删除掉了。缺少对应组件的安装程序当然不能成功安装了,就算是修复,也会修复失败。
在Google上搜索了一番,还好,找到一位国外兄弟跟我遇到相同的情况,其实遇到这种情况的大有人在,但在国内网站能搜到的,大部分是只提问题不提答案的……再一次恶心……国外兄弟的博客当然全是英文了,不过幸好,凭借阅读帮助文档的蹩脚英语,终于搞掂,重新安装上VS2005。下面把解决方案贴上: OK, I just ended up having to burn one of my MSDN incidents :( because I could not get Visual Studio 2005 to install correctly, so I figured I'd blog the solution so someone else could benefit from it. The Error The error message I got simply said that Document Explorer 2005 failed to install. Tracing the event log I got the following: Product: Microsoft Document Explorer 2005 -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908. The arguments are: {FAA7C2AC-4205-4228-BEB6-6E647CCA9FD2}, , followed by:
Product: Microsoft Document Explorer 2005 -- Error 1935.An error occurred during the installation of assembly 'Microsoft.MSXML,Version="8.0.0.0",PublicKeyToken="b03f5f7f11d50a3a",Culture="neutral",FileVersion="8.0.50727.42",ProcessorArchitecture="MSIL"'. Please refer to Help and Support for more information. HRESULT: 0x80131700. assembly interface: , function: CreateAssemblyNameObject, component: {B1BE189C-054D-4195-9C26-49D28C20DE94} The Solution The problem was solved by following these steps:
- Uninstall .NET 2.0.
- Click "Start". The Windows Start Menu pops up.
- Click "Control Panel". The Control Panel windows opens.
- Double Click "Add/Remove Programs". The Add/Remove Programs window opens and after some period of scanning for applications, presents you with a list of installed applications.
- Select the ".NET Framework 2.0" application and select to remove it.
- Delete temp files.
- Click "Start". The Windows Start Menu pops up.
- Click "Run". The Run command window opens.
- Enter "%temp%" and click OK. This will open your Temp folder.
- Press Ctrl+A. This will select all the files in the folder.
- Press Shift+Del to delete all files listed that are not locked. The delete process may abort on error several times stating that a particular file could not be deleted. Simply unselect that given file by holding down the Ctrl key and clicking the file and continue the deletion. In my case there were 2 files that could not be deleted in the end.
- Add registry key.
- Click "Start". The Windows Start Menu pops up.
- Click "Run". The Run command window opens.
- Enter "regedit" and click OK. This will open RegEdit.
- Navigate down to HKLM\Software\Policies\Microsoft\Windows\Installer.
- Right click in the right hand pane. A popup menu with one option, "New" appears.
- Click "New". A new popup menu with several options appears.
- Click "String Value".
- Change the "New Value #1" text to "Logging".
- Double click the "Logging" entry. The value edit window opens.
- Change the value of the key to "VoiceWarmup" & click OK.
- Close RegEdit.
- Install the .NET Framework 2.0.
- Open Windows Explorer.
- Navigate to "D:\wcu\dotNetFramework".
- Double click "dotnetfx.exe" to install the framework.
- Install the Microsoft Document Explorer 2005.
- In Windows Explorer, navigate to "D:\wcu\DExplore".
- Double click "DExplore.exe" to install the Document Explorer.
- Install Visual Studio 2005 as per normal from here.
That worked for me... hopefully, it will work for you too! :)
Later
C
本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2005anzhuangwenti/2020/0721/666.html