MATLAB Answers

0

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

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).

1 Answer

Answer by MathWorks Support Team on 26 Apr 2016
 Accepted Answer

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

This solution does not work for r2014a (or probably any version) Why is it I cannot install a software DIRECTLY from Mathworks that will work for all users on the machine? This is common practice for all software installed on multiuser machines? Can I have an explanation?
In addition the install broke the path for every user other than the one that did the HW install. IT IS BROKE for everyone else? What is happening Mathworks?
Hello Jason,
I understand that this solution did not help you and you are facing path problems after installing the support package. In order to help you fix this issue, I would suggest you to contact MathWorks Technical Support. They would be better equipped to investigate this issue.
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.