安裝Visual Studio
2005,2008都三年了,從來都沒遇到過什么問題,安裝過程都很順利。今天給公司的新電腦裝系統,自帶了一個正版的Win
XP家庭版,安裝VS的時候出錯,1330錯誤:某個文件數字簽名不可用。于是換了張光盤,結果還是同樣的結果。。。于是換系統,先裝Win2003,最
后到Win2008,都逃不過這個問題,而且數字簽名不可用的文件每次都是隨機的,有時是第2個文件,有時是第60個文件。找來師哥們幫忙,他們也沒遇到
過這么怪的問題。后來在Google上搜索"Visual Studio
1330",找了很久,微軟MSDN版主的解釋是文件損壞,重新下載安裝。(PS:公司里的Visual
Studio光盤是MSDN寄來的光盤,有20多張DVD,包括所有語言的版本)。還有的是讓把光盤里的文件復制到硬盤安裝。。。。測試無效。
Finally,通過Google在一個老外的博客上找到了解決方法:在注冊表中,把原HKCU\Software\Microsoft\Windows
\CurrentVersion\WinTrust\Trust
Providers\Software Publishing\State 的值由 0x23c00 改為
0x22800。關閉文件數字簽名驗證。VS順利安裝!
下面附原博客內容:
FIX: Error 1330 - Installing Visual Studio 2008 on Windows Server 2008
VPC
OK, I have run into SO many bloody 1330 errors while installing Visual
Studio 2008 on a Windows Server 2008 VPC. Here is the fix I ran across
on Heath Stewart's blog.
On my host, I installed the Windows SDK for Windows Server 2008 and .NET
Framework 3.5.
I then copied SetReg to my VPC image from my host's C:\Program
Files\Microsoft SDKs\Windows\v6.1\Bin.
I then updated my SetReg settings on the VPC as is mentioned in Heath's
article.
Software Publishing State Key Values (0x22800):
1) Trust the Test Root........................... FALSE
2) Use expiration date on certificates........... TRUE
3) Check the revocation list..................... TRUE
4) Offline revocation server OK (Individual)..... FALSE
5) Offline revocation server OK (Commercial)..... TRUE
6) Java offline revocation server OK (Individual) FALSE
7) Java offline revocation server OK (Commercial) TRUE
8) Invalidate version 1 signed objects........... FALSE
9) Check the revocation list on Time Stamp Signer FALSE
10) Only trust items found in the Trust DB........ FALSE
Reran the VS2008 install and PRESTO! it worked w/ no Error 1330s.
FWIW, I am writing this down here on my blog so I have it
semi-permanently for future such mishaps. :-)
posted on 2010-09-26 09:00
小果子 閱讀(801)
評論(0) 編輯 收藏 引用 所屬分類:
學習筆記