When I install a Hardware Support Package, why isn't the Support Package visible to other user accounts?

10 views (last 30 days)
I have downloaded and installed a Support Package for Simulink, following the instructions at the following documentation link. The installation was done under the Administrator account:
The issue that we are running into is that the Support Package is not visible to other user accounts (either the whole Support Package is missing for them, or pieces of it are missing).

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Sep 2021
Edited: MathWorks Support Team on 4 Oct 2021
This issue has been fixed in R2015b.
When the Support Package Installer installs support for a piece of hardware (such as Arduino), the information for the Support Package is “registered” in the MATLAB Preferences of the user who did the installation. This means that the registration information for the install only exists for the specific user account that did the install (typically the Administrator). This can lead to issues where the Support Package or parts of the Support Package are not visible to other user accounts.
There are two workarounds available:
1) When you log into a personal account, right-click on the MATLAB executable and see if there is a menu option for “Run as administrator”. This allows MATLAB to run with elevated privileges while still being under a personal account. You can then install any desired Hardware Support Package, such as Arduino, for that specific user account. Note that not all users have the permissions necessary to run an application as an administrator.
2) If you do not see a context menu option for “Run as administrator”, then you can try manually copying the MATLAB preferences file from the Administrator account to the personal account. Do the following (or have the system administrator do steps a-c, and do the rest in the personal account).
In the Administrator’s account:
a) Start MATLAB.
b) Install the Support Package to a location that is accessible to all users. By default, the support package is installed under
R2012a-R2012b
'C:\MATLAB\Targets\<Release>'
R2013a-R2015a
'C:\MATLAB\SupportPackages\<Release>'
Note: This location can be changed.
c) Copy the MATLAB preferences file to a location that is accessible to all users by running the following commands on the MATLAB command line:
>> prefsFile = 'matlabprefs.mat';
>> srcFile = fullfile(prefdir, prefsFile); % path to admin preference file
>> destFile = fullfile('C:\', prefsFile); % enter path to common location here
>> copyfile(srcFile, destFile) % copy the preference file to common location
In the personal account:
d) Start MATLAB.
e) Copy the MATLAB preferences file from the common location by running the following commands on the MATLAB command line:
>> prefsFile = 'matlabprefs.mat';
>> srcFile = fullfile('C:\', prefsFile); % enter path to common location here
>> destFile = fullfile(prefdir, prefsFile); % path to personal user preference file location
>> copyfile(srcFile, destFile) % copy the preference file to personal user location
f) Restart MATLAB.
  3 Comments
Jason
Jason on 10 Sep 2015
Thanks Sriram. Is there a chance that 2015b will have fixed this issue with Support Packages being visible to other users other than the Admin? Is there someone I could ask?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!