码迷,mamicode.com
首页 > 编程语言 > 详细

[Windows] Win7安装visual c++ 2015 redistributable x64失败

时间:2016-06-13 22:03:20      阅读:870      评论:0      收藏:0      [点我收藏+]

标签:

在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文件,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <servicing>
        <package action="install">
            <assemblyIdentity  name="Package_for_KB2999226" version="6.1.1.7" language="neutral" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"/>
            <source location="%configsetroot%\Windows6.1-KB2999226-x64.CAB" />
        </package>
     </servicing>
</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盘根目录下的一个文件夹中)复制到该路径下。

重新运行安装程序。

[Windows] Win7安装visual c++ 2015 redistributable x64失败

标签:

原文地址:http://www.cnblogs.com/qslcna/p/5582036.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!