设为首页 加入收藏

TOP

[原创][Windows] Win7安装visual c++ 2015 redistributable x64失败
2017-10-11 18:27:24 】 浏览:5395
Tags:原创 Windows Win7 安装 visual 2015 redistributable x64 失败

在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盘根目录下的一个文件夹中)复制到该路径下。

重新运行安装程序。

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇C# 中的委托和事件 下一篇第0篇 如何访问win10的C$等默认共..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目