prveensingh_123 asked . 2024-02-12

How do I uninstall and reinstall MathWorks Service Host?

How do I uninstall and reinstall MathWorks Service Host?

MATLAB , Installation and Licensing , Install Products

Expert Answer

John Williams answered . 2024-05-20 15:25:04

The MathWorks Service Host provides services which are required by other MathWorks products, such as licensing functionality for MATLAB and web service functionality for MATLAB Drive Connector. Uninstalling and reinstalling MathWorks Service Host may be necessary if you are encountering startup issues with either of these. The steps below should help you accomplish this.

 

1. End the process
 
Windows
  1. Open Task Manager. This is often done by pressing Ctrl+Alt+Delete on your keyboard
  2. If you do not see tabs such as "Processes" & "Performance", select "More details" in the bottom left corner of the Window.
  3. Navigate to the "Details" tab near the top of the Window
  4. Find "MathWorks Service Host". You may be able to find it more easily by searching in the search bar for "MathWorks"
  5. Highlight it and select "End Task" in the bottom right corner of the Window
  6. Find "MSH Health Monitor" and select to "End Task" for this process as well
macOS
  1. Open the app Terminal by searching for it Spotlight Search. Spotlight Search is the magnifying glass in the top right corner of your Mac OS screen.
  2. Type in run killall MathWorksServiceHost
  3. Press enter/return on your keyboard.
  4. Type in run killall MSHHealthMonitor
  5. Press enter/return on your keyboard.
Linux
  1. Open Terminal. Doing this will vary depending on your Linux distribution
  2. Type in run killall MathWorksServiceHost
  3. Press enter on your keyboard.
  4. Type in run killall MSHHealthMonitor
  5. Press enter/return on your keyboard.

 

2. Uninstall the MathWorks Service Host
 
Windows
 
We first need to make sure that we can view hidden folders inside of File Explorer. If you have already enabled this, you may skip this section.
 
Displaying Hidden Folders and Files
  1. Click on the Start Menu
  2. Type in "Control Panel"
  3. Open the first result, which should be Control Panel
  4. Type in "hidden". You may need to click on the search bar in the top right of the window to start searching.
  5. Click on "Show hidden files and folders"
  6. Under the section that says "Hidden files and folders", select "Show hidden files, folders, and drives"
  7. Click "OK". You may close out Control Panel.
Uninstalling MathWorks Service Host
  1. Press Windows Key+R on your keyboard
  2. Type in %localappdata%\MathWorks\ServiceHost and then press Enter on your keyboard.
  3. Go into the folder named with whichever version you have installed (for example: v2024.1.0.3.) You may have multiple versions installed. This means you'll need to repeat the steps 3-6 for each version you have installed.
  4. Go into the folder named "mci", then, "bin", and then "win64"
  5. Find the file labeled "UninstallMathWorksServiceHost". Double-click on it.
  6. The uninstallation will run without any window displaying. After a few moments, it will be completed.
  7. Go back into the ServiceHost folder. Delete the folder with the version name that you just uninstalled.
  8. Delete the LastInstall.?info file
  9. Go up into the MathWorks folder. (C:\Users\%username%\AppData\Local\MathWorks)
  10. Delete the MATLABConnector folder. If you don't see it, then make sure you have enabled the ability to view hidden folders the section above this one, labeled "Displaying Hidden Folders and Files" will instruct you how to do this.
macOS
  1. Open Finder
  2. In the top left corner of your screen, you should see buttons such as "File, Edit, View". Select "Go".
  3. Select the second-to-last option "Go to Folder..."
  4. Type in the following: ~/Library/Application Support/MathWorks
  5. Press enter/return on your keyboard.
  6. Delete the MATLABConnector folder.
  7. Go into the folder named "ServiceHost"
  8. Delete any folders that start with the letter "v".
  9. Delete the file named LatestInstall.?info
Linux
 
Please note that some of the folders that you will be navigating into are hidden folders. You may need to perform additional commands or enable the ability to view hidden folders with your file explorer. Doing this will vary depending on your Linux distribution and file explorer used.
  1. Go to the following folder: /home/$USER/.MathWorks/ServiceHost/$HOSTNAME/
  2. Go into the folder named with whichever version you have installed (for example: v2024.1.0.3.) You may have multiple versions installed. This means you'll need to repeat the steps 3-6 for each version you have installed.
  3. Go into the folder named "mci", then, "bin", and then "glnxa64"
  4. Find the script labeled "UninstallMathWorksServiceHost.sh". Execute the script.
  5. The uninstallation may run without any window displaying. After a few moments, it will be completed.
  6. Go back into the ServiceHost folder. Delete the folder with the version name that you just uninstalled.
  7. Delete the LastInstall.?info file
  8. Go back into the $HOSTNAME folder (/home/$USER/.MathWorks/ServiceHost/$HOSTNAME/)
  9. Delete the MATLABConnector folder.
  10. Go to your user's home folder (/home/$USER/)
  11. Delete the folder named ".MATLABConnector".

 

3. Reinstall the MathWorks Service Host

 
All Operating Systems
  1. Download the latest MATLAB Drive Connector Installer from this link: Install MATLAB Drive Connector
  2. Run the file that is downloaded.
  3. Allow the installer to finish installing MathWorks Service Host.
  4. If you are prompted to setup MATLAB Drive Connector, you may quit this window, unless you plan to use MATLAB Drive.


Not satisfied with the answer ?? ASK NOW

Frequently Asked Questions

MATLAB offers tools for real-time AI applications, including Simulink for modeling and simulation. It can be used for developing algorithms and control systems for autonomous vehicles, robots, and other real-time AI systems.

MATLAB Online™ provides access to MATLAB® from your web browser. With MATLAB Online, your files are stored on MATLAB Drive™ and are available wherever you go. MATLAB Drive Connector synchronizes your files between your computers and MATLAB Online, providing offline access and eliminating the need to manually upload or download files. You can also run your files from the convenience of your smartphone or tablet by connecting to MathWorks® Cloud through the MATLAB Mobile™ app.

Yes, MATLAB provides tools and frameworks for deep learning, including the Deep Learning Toolbox. You can use MATLAB for tasks like building and training neural networks, image classification, and natural language processing.

MATLAB and Python are both popular choices for AI development. MATLAB is known for its ease of use in mathematical computations and its extensive toolbox for AI and machine learning. Python, on the other hand, has a vast ecosystem of libraries like TensorFlow and PyTorch. The choice depends on your preferences and project requirements.

You can find support, discussion forums, and a community of MATLAB users on the MATLAB website, Matlansolutions forums, and other AI-related online communities. Remember that MATLAB's capabilities in AI and machine learning continue to evolve, so staying updated with the latest features and resources is essential for effective AI development using MATLAB.

Without any hesitation the answer to this question is NO. The service we offer is 100% legal, legitimate and won't make you a cheater. Read and discover exactly what an essay writing service is and how when used correctly, is a valuable teaching aid and no more akin to cheating than a tutor's 'model essay' or the many published essay guides available from your local book shop. You should use the work as a reference and should not hand over the exact copy of it.

Matlabsolutions.com provides guaranteed satisfaction with a commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been empanelled after extensive research and quality check.

Matlabsolutions.com provides undivided attention to each Matlab assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work done at the best price in industry.