MATLAB: Troubleshooting Windows SDK 7.1 Installation

Typical problems and how to troubleshoot them

MATLAB: Troubleshooting Windows SDK 7.1 Installation

Postby techila support » 2016-03-09 13:51:54

In order to use Techila with MATLAB, you will need to have a supported C compiler to perform code compilation. If you are using a computer with a Microsoft Windows 10 operating system, installing the Microsoft Windows SDK 7.1 C compiler can sometimes be problematic due to the registry information, which contains incompatible .NET framework version information. Typically this is manifested by the following message when trying the installing the Microsoft Windows SDK 7.1.

1.png
1.png (12.76 KiB) Viewed 7408 times


The instructions below show how you can temporarily modify the registry settings so you can install the Microsoft Windows SDK 7.1.

1. Download the Microsoft Windows SDK 7.1 installer from following link. Just save the installer on the computer, do not run it yet.

https://www.microsoft.com/en-us/downloa ... px?id=8279

2. Create a script containing the commands described in here http://stackoverflow.com/a/35357470. For the purposes of these instructions, we have used 'registrymod.bat' as the script name. This script will later be used to temporarily modify the registry settings so that the Windows SDK installer works in the desired manner.

3. Download SubInACL installer from the following link. This tool is needed by the registrymod.bat script to modify the registry values.

https://www.microsoft.com/en-us/downloa ... x?id=23510

4. Run the SubInACL installer and follow the installation instructions to install the software. Make a mental note where the software was installed, because the path will need to be added to the Windows PATH environment variable after installation.

2.png
2.png (22.98 KiB) Viewed 7408 times


5. After installing SubInACL, update your Windows 'PATH' environment variable to contain the SubInACL installation location, which by default is: C:\Program Files (x86)\Windows Resource Kits\Tools.

3.png
3.png (22.96 KiB) Viewed 7408 times


6. Launch a Windows command prompt with administrator permissions. Administrator permissions are needed to execute the commands in the registrymod.bat.

4.png
4.png (23.09 KiB) Viewed 7408 times


7. Using the command prompt, change your current working directory to the location where you saved the registrymod.bat.

5.png
5.png (45.78 KiB) Viewed 7408 times


8. Start the registrymod.bat script and wait for the script to pause. Do NOT press any key to continue. While the script is paused, install the Microsoft SDK as explained in the following steps.

6.png
6.png (138.93 KiB) Viewed 7408 times


9. Run the winsdk_web.exe installer you downloaded earlier. Leave the default installation options on as shown below.

7.png
7.png (68.49 KiB) Viewed 7408 times


10. Wait for the Microsoft Windows SDK 7.1 installer to complete.

8.png
8.png (80.13 KiB) Viewed 7408 times


11. Select your command prompt and hit any key to un-pause the registrymod.bat script. This resets the registry values to the earlier settings. After the script has finished executing, the output should resemble the one shown below:

9.png
9.png (187.68 KiB) Viewed 7408 times


12. Launch MATLAB

13. Run mbuild -setup

The command should execute successfully and return an output resembling the one shown below:

>> mbuild -setup
MBUILD configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation.
Techila MATLAB documentation available here:

http://www.techilatechnologies.com/help ... ngine.html
techila support
Techila Staff
Techila Staff
 
Posts: 49
Joined: 2015-12-21 10:19:47

Re: MATLAB: Microsoft Windows SDK 7.1 + Windows 10

Postby techila support » 2016-04-06 07:21:09

If the Microsoft Windows SDK 7.1 installation generates an error (instead of not allowing to install all components as explained in the previous post) you might need to uninstall some Microsoft Visual C++ 2010 SP1 Redistributable Packages to allow the installation to work as intended. Please see the following link for more detailed information what components need to be removed.

http://se.mathworks.com/matlabcentral/answers/95039-why-does-the-sdk-7-1-installation-fail-with-an-installation-failed-message-on-my-windows-system#answer_104391
Techila MATLAB documentation available here:

http://www.techilatechnologies.com/help ... ngine.html
techila support
Techila Staff
Techila Staff
 
Posts: 49
Joined: 2015-12-21 10:19:47

Re: MATLAB: Troubleshooting Windows SDK 7.1 Installation

Postby techila support » 2017-06-02 09:31:21

If you are able to install the SDK (and MATLAB even recognizes the installation), but is unable to find the compiler, then the following link might provide assistance:

https://se.mathworks.com/matlabcentral/ ... -with-fram
Techila MATLAB documentation available here:

http://www.techilatechnologies.com/help ... ngine.html
techila support
Techila Staff
Techila Staff
 
Posts: 49
Joined: 2015-12-21 10:19:47


Return to Troubleshooting

cron