Clear Filters
Clear Filters

issue with Installing Offline Documentation

144 views (last 30 days)
when i Installing Offline Documentation on Windows 10 for MATLAB R2023a
on offline machine (not have a network connection)
step 1: mount iso
step 2: run Windows Command Prompt as Administrator
step 3: cd E:\bin\win64
step 4: .\mpm install-doc --matlabroot="C:\Program Files\MATLAB\R2023a"
result: '.\mpm' is not recognized as an internal or external command,
operable program or batch file.
please, how to solve this issue with a clear steps because i'm beginner user.
  6 Comments
Robert Higuera
Robert Higuera on 3 Nov 2023
Walter,
In this case mpm.exe stands for "MATLAB Package Manager".
Eugene Lyu
Eugene Lyu on 5 Nov 2023
I tried to install on a win10 mechine also and get the error meaning something like "'install-doc' is not a valid commad". I've searched for document of the function 'mpm', it says that I should annouce the name of package that I want to install right behind "install" without "-". However, what is the exact package name for help documentation? Is it "doc"? But I cannot find any file named "doc" in \bin\win64.
Really annoying.

Sign in to comment.

Accepted Answer

islam
islam on 12 Nov 2023
Edited: islam on 14 Nov 2023
Hello everyone, and thank you all.
I am grateful for your responses and support.
I would like to give a special thanks to Robert Higuera for his valuable suggestions, which helped me to resolve that issue.
With a slight modifications to Robert Higuera's suggestions, the installation succeeded.
Therefore, I am sharing the clear steps that worked for me:-
Step 1: Extract the iso file and make the Extracted files in one folder named the same as the iso file name.
Step 2: Copy this folder to the (MATLAB\R2023a) folder path on the offline machine.
Step 3: run the command prompt as an administrator.
Step 4 (input 1):
cd C:\Program Files\MATLAB\R2023a\R2023a_Doc_Windows\bin\win64
Step 5 (input 2):
mpm install-doc --matlabroot="C:\Program Files\MATLAB\R2023a"
Result 1 (output 1):
Installing with the following parameters:
--destination=C:\ProgramData\MATLAB\SupportPackages\R2023a
--doc=true
--source=C:\Program Files\MATLAB\R2023a\R2023a_Doc_Windows\archives
--matlabroot=C:\Program Files\MATLAB\R2023a
---------------------------------------------
Starting install...
Step 6: the installation process is currently in progress, wait until finished.
Result 2 (output 2):
Completing setup...
Installation complete
C:\Program Files\MATLAB\R2023a\R2023a_Doc_Windows\bin\win64>
Step 7:
- Open the (Matlab application) then go to the Home tab, and in the Environment section, click (Preferences)
- Then select (Help) you will find it under Matlab sub titles (MATLAB > Help.)
- Under Documentation Location, select (Installed Locally.)
- Click (apply) then (ok).
- Restart the Matlab application.
Last result: It's done, now you can use offline documentation on the offline machine.
Optional step: You can delete the copied folder of step 2 from the offline machine after installation.
Note for step 4:
You write cd then the path of the folder located into (the copied folder of step 2) into (bin folder), then open (the folder that is named as the operating system architecture) then copy this path and write it after cd
For example:
cd C:\Program Files\MATLAB\R2023a\(the copied folder of step 2)\(bin folder)\(the folder that named as the operating system architecture)
If you need additional information or details that were not mentioned, visit the MATLAB Install Documentation on Offline Machines help page.
command prompt Preview:
I hope that these Steps will be effective and successful for all of you.
  2 Comments
Ates Ozcelik
Ates Ozcelik on 13 Nov 2023
Hey there. I followed the steps but after it says "Starting install..." it directly says "Products wil be installed to: C:\ProgramData\MATLAB\SupportPackages\R2023b" and nothing is installed afterwards. I don't see "Completing setup..." and "Installation complete" prompts. What might cause this problem? I'd appreciate any help. Thanks in advance.
islam
islam on 13 Nov 2023
Edited: islam on 14 Nov 2023
Hi Ates Ozcelik,
Firstly, maybe in the R2023b version, it will give you the path of installation as a result in the first output, and you will not see it in the second output.
Secondly, he told you that "Products will be installed to...", indicating that the product has not been installed yet, and he is just informing you of the location of the installation on your PC (the path).
Thirdly, he is saying "Starting install..." with dots after the word "install," which means that the installation process is currently in progress and has not yet finished. In your case, he has given you the installation path during the installation process.
Therefore, it's probable that you may have to wait for some more time until the installation process is complete, which could take up to one or two hours or less, depending on your PC's specifications.
Please try it again and wait until the installation processing complete, and let me know what result you get.

Sign in to comment.

More Answers (5)

Walter Roberson
Walter Roberson on 26 Oct 2023
Moved: Steven Lord on 26 Oct 2023
If you have a network connection then Preferences --> Help -> Installed locally will offer to install the documentation for you.
  3 Comments
Robert Higuera
Robert Higuera on 27 Oct 2023
Edited: Robert Higuera on 27 Oct 2023
I am having the same issue. Using the Offline MATLAB documentation install instructions for Windows. I work on off network systems and they absolutley cannot be cnnected to the internet. Like Islam, I get an error, though slighlty different, "the system cannot execute the specified command". This is MATLAB 2023b on Win10. I downloaded the documentation ISO for Windows from the same page as the install instrcutions. Please provide instructions on offline install for Win10.
Robert Higuera
Robert Higuera on 27 Oct 2023
BTW, I tried with both Windows Command prompt and Powershell as admin, neither works.

Sign in to comment.


Robert Higuera
Robert Higuera on 3 Nov 2023
Edited: Robert Higuera on 3 Nov 2023
Islam, try the following and see if this works for you:
  1. Copy the document ISO image to the C drive of the system where MATLAB is isntalled. Make sure you have the same version document ISO image as the version MATLAB you have installed (it looks like you are running R2023a).
  2. Mount the ISO.
  3. Open a command prompt as admin
  4. CD to the iso mount bin\win64 location (E:\bin\win64 for example).
  5. Now back to admin command prompt and type in the following command, "mpm install-doc --matlabroot=”C:\Program Files\MATLAB\R2023b”" (wthout the outside quotes)
  6. The matlabroot is where your instance of MATLAB is insalled (typically C:\Program Files\MATLAB\RXXXX, unless you specified a custom install location).
Also the .\mpm syntax is incorrect for Windows, just mpm should work. Hopefully this works for you. It worked for me.
CORRECTION: Sorry Islam, it seems MATLAB support can't seem to agree with themselves. They had me run the command "mpm install-doc --matlabroot=”C:\Program Files\MATLAB\R2023b”", dropping everything after "--source" and it worked. One thing I should also note is I previously tried the command with both the .\mpm and just mpm.exe syntax and it still failed for me. I downloaded another copy of the ISO and that one worked, so in my case it was not only the install instructions being wrong (.\mpm) but it also seems my first ISO download was bad somewhow.
  3 Comments
Robert Higuera
Robert Higuera on 3 Nov 2023
Edited: Robert Higuera on 3 Nov 2023
I can confirm the first ISO I downloaded was bad, I downloaded another copy yesterday (11/2). I tried both on subsequent systems and the first failed every time while the second worked no issues. The first one I downloaded on 10/27. I was also thinking something like that, that the first ISO I downloaded had the Linux version of mpm.
islam
islam on 12 Nov 2023
Hello Robert Higuera, I am grateful for your response and support. Thank you so much!
I tried all the suggestions you provided, but unfortunately, I still encountered the same issue.
However, after making some modifications to your suggestions, I was finally able to successfully complete the installation.
and this is the modifications:
-Extract the iso file and make the Extracted files in one folder named the same as the iso file name.
-Copy this folder to the (MATLAB\R2023a) folder path on the offline machine.
- "cd C:\Program Files\MATLAB\R2023a\R2023a_Doc_Windows\bin\win64" (wthout the outside quotes)
- "mpm install-doc --matlabroot="C:\Program Files\MATLAB\R2023a"" (wthout the outside quotes)
additional step:
- Open the (Matlab application) then go to the Home tab, and in the Environment section, click (Preferences) Then select (Help) you will find it under Matlab sub titles (MATLAB > Help.). Under Documentation Location, select (Installed Locally.) Click (apply) then (ok). Restart the Matlab application.
It's done, now you can use offline documentation on the offline machine.
Note: You can delete the copied folder from the offline machine after installation.
I have submitted all the necessary details and steps above.
Thank you once again for your help.

Sign in to comment.


Image Analyst
Image Analyst on 5 Nov 2023
Just simply call the Mathworks on the phone tomorrow and talk to a real live person and have them walk you through it.

浩 程
浩 程 on 7 Dec 2023
When I installed it, it showed that it was not compatible with Windows. How should I solve it?

浩田
浩田 on 5 Feb 2024
I follow the intallation guide ,and everything goes well,but in the end, the cmd line shows: installation fails.and there is no other logs about what happend.I tried three times, in diffrrent destination folder. all the same.How should I solve it? R2023b,win10.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!