MATLAB: Do I get the error “The support packages in the folder are not of the expected type.” when installing a support package from a folder

Why do I get the error "The support packages in the folder are not of the expected type." when installing a support package from a folder in MATLAB R2016a or earlier?

Best Answer

This error indicates that you are trying to install a Software support package through the Hardware support package installer or vice versa. For example, if you are trying to install the MinGW compiler, you will see this error if you have opened the Hardware Support Package Installer instead of the Software Support Package Installer.
If you see this error when installing a support package, try launching the other Support Package installer.
To launch the Software Support Package Installer, use this command:
hwconnectinstaller.launchInstaller('supportcategory','software')
To launch the Hardware Support Package Installer, use this command:
hwconnectinstaller.launchInstaller('supportcategory','hardware')