from:http://www.fxyoke.cn/forum.php?mod=viewthread&tid=1171
在win7中安裝visual c++ 2015 redistributable x64 時會卡住,原因是visual c++ 2015 redistributable x64 需要KB2999226,Wusa.exe(Windows System Console Application,Windows update 獨立安裝程序 )會將下載下來的Windows6.1-KB2999226-x64.msu解壓到C盤根目錄下
打開文件夾會找到Windows6.1-KB2999226-x64.xml文件,如下所示:
打開文件夾會找到Windows6.1-KB2999226-x64.xml文件,如下所示:
[XML]
純文本查看
復制代碼
1 |
<? xml version = "1.0" encoding = "utf-8" ?> |
2 |
< unattend xmlns = "urn:schemas-microsoft-com:unattend" > |
3 |
< servicing > |
4 |
< package action = "install" > |
5 |
< assemblyIdentity name = "Package_for_KB2999226" version = "6.1.1.7" language = "neutral" processorArchitecture = "amd64" publicKeyToken = "31bf3856ad364e35" /> |
6 |
< source location = "%configsetroot%\Windows6.1-KB2999226-x64.CAB" /> |
7 |
</ package > |
8 |
</ servicing > |
9 |
</ unattend > |
卡主的原因是找不到包的路徑,在xml文件中有一個<source/>節點,它的路徑標識成<source location="%configsetroot%\Windows6.1-KB2999226-x64.CAB" /> ,%configsetroot%是一個用戶環境變量,但是在默認不存在,所以wusa.exe會找不到Windows6.1-KB2999226-x64.CAB
解決方法:
創建configsetroot環境變量,打開我的電腦在地址欄輸入%configsetroot%,回車,會跳轉到環境變量設置的path,將Windows6.1-KB2999226-x64.CAB(上面提到的wusa.exe解壓出來的,在c盤根目錄下的一個文件夾中)復制到該路徑下。
重新運行安裝程序。