Win10 安装SDK解决方法

【问题描述】

Win10电脑使用MATLAB mex -setup时遇到错误提醒如下:

Error using mex:No supported compiler or SDK was found. 

For options, bisithttp://www.mathworks.com/support/compilers/R2015a/wun64.html


点开链接试图安装Microsoft Windows SDK 7.1时遇到问题如下:

Some Windows SDK components require the RTM .NET Framework 4. Setup detected a pre-release version of .NET Framework 4. If you continue with Setup, these components will not be installed. If you want to install these components, click Cancel, then install the .NET Framework 4 from https://go.microsoft.com/fwlink/?LinkID=187668 and then rerun Setup.

Click OK to continue.

点开链接试图安装.NET Framework 4,再次遇到问题:

The Microsoft .NET Framework 4 is already part of the operating system. No need to install the .NET Framework 4 redistributable. More information.An equal or higher version of the .NET Framework 4 has already been installed on the computer.


【解决办法】

电脑搜索栏搜 "regedit"(control pannel)进入后进入下列两路径,将Version值从4.6.01038修改到4.0.30319:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Client\Version

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\NET Framework Setup\NDP\v4\Full\Version

如果遇到不能修改Version值的操作办法:

依次进入两个路径后Edit-->Permission-->Advanced-->Owner change-->根据Permission entries在最后输入用户的Principle(我的是‘Users’)更改后点OK-->将Users的Permissions勾选Full Control-->Apply-->OK之后就可以更改Version Value了

更改后成功安装SDK,之后将以上路径的VersionValue改回原值,peremission改回原状态,完成

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值