MATLAB: Trying to install MATLAB Support Package for USB Webcams

errorinstallationusb webcams support package

I am trying to install the MATLAB Support Package for USB Webcams in MATLAB version 9.0.0.307022 (R2016a) on a Windows laptop. I have tried to download it both directly from the command window, and from: https://www.mathworks.com/matlabcentral/fileexchange/45182-matlab-support-package-for-usb-webcams
I go through the installation process and in the end it fails and gives the error: "A required support package (USB Webcams) is missing." Well duh! That's what I'm trying to install!
I tried googling the issue to see if anyone else had encountered this before, and found nothing. Did the same on the MATLAB community answer page, with the same results… Please help!

Best Answer

Try a clean uninstallation of the support package and reinstall it again.
1. Open MATLAB and choose the drop-down menu for "Add-Ons", followed by the "Get Hardware Support Packages" option. In the Support Package Installer choose the "Uninstall" radio button, then click "Next". Follow the remaining menus to uninstall the desired Support Package.
2. Navigate to the following folder on your computer and delete the contents you find there:
Windows = C:\MATLAB\SupportPackage\R20XXx\
Mac = /Users/<username>/Documents/MATLAB/SupportPackages/R20XXx/
Linux = /home/<username>/Documents/MATLAB/SupportPackages/R20XXx/
3. Open the 'Downloads' folder on your computer, then navigate to \MathWorks\SupportPackages\R20XXx\. Delete the contents of the "R20XXx" folder.
4. Open MATLAB again and run the following commands:
>>restoredefaultpath
>>savepath
5. Run the Support Package installer again and re-install your Support Package now.
If the error persists, please provide the complete error message or screenshot of the error.
Related Question