Posted on 06-10-2020 06:50 AM
Is it possible to Install Matlab R2020a silently? I have a registration key and a license.dat File.
Posted on 06-10-2020 10:10 AM
Yes, you'll need to use the "download without installing" option in the installer app to download all the files to a Mac, then repackage it for deployment with the key, license, and edited installer_input.txt file (this file is in the downloaded files from Mathworks). I do this and make it a Self Service policy. These are the main steps I take when I'm packaging any new version.
"$INSTALL_DIR"/install -inputFile "$INSTALL_DIR"/installer_input.txt
Posted on 06-11-2020 12:49 AM
Thank you for your Answer. But I don't unsterstand the step 9 - 10. In Step 8 I edit the installer_input.txt:
destinationFolder=/Applications
fileInstallationKey=1234-1234-1234-1234-1234
agreeToLicense=yes
licensePath=./license/license.dat
I create a Folder in /Downloads/Matlab/license and copy my license.dat file in the folder.
That is what I do, can you explain the step 9 and 10. On the attachment, you can see my Folder Matlab in Downloads.
You say in Step 9:
Build with Packages to place the license.dat file in /Applications/MATLAB_R2020.app/licenses/ and put the contents of the downloaded Matlab folder into the "Additional Resources" of the Packages project.
I don`t have a Matlab folder in Applications.
Posted on 06-11-2020 07:01 AM
I use the Packages app to repackage the Matlab software. If you use something else your workflow will be a little different, but the end result should be the same. I can give more detail about how I do it in Packages though if that helps. The main thing is to put the license file in the right file path and to place those downloaded files somewhere on the Mac and then trigger the install from that directory. I use Packages to do this because it creates a temporary directory for those files and I don't have to worry about it.
More details about doing this in Packages,
In the Payload tab of Packages, I add the folders where the app will be installed. The license.dat file needs to be in /Applications/MATLAB_R2020.app/licenses/, so I create that location and place the file there. Then, I put all those files that were downloaded (that are currently in the downloads folder) and drag them into the Additional Resources section of the Scripts tab in the Packages. Then I use a postflight script to set the directory and install matlab using those files (those commands are below, I can't share the whole script because of other customizations we do).
INSTALL_DIR="$(dirname $0)"
"$INSTALL_DIR"/install -inputFile "$INSTALL_DIR"/installer_input.txt
Posted on 06-16-2020 09:47 PM
Thank you, it works fine.
Posted on 11-19-2020 04:13 PM
@unknown_err Thank you for this, I've built a package such as this using Packages but I'm getting an error message which I think its due to the postflight script.
Do I need to do any modifications to these lines for the postflight.sh?
INSTALL_DIR="$(dirname $0)"
"$INSTALL_DIR"/install -inputFile "$INSTALL_DIR"/installer_input.txt
Posted on 11-20-2020 08:03 AM
@winterboer You shouldn't need to unless the installer_input.txt file was renamed.
Posted on 11-20-2020 10:17 AM
@unknown_err made zero changes to file names.
Do I need to modify the syntax for my own environment?
Posted on 11-20-2020 10:30 AM
@winterboer Not for the file names or the postflight, you should be able to keep it as is. What error are you seeing? The only things you'd need to modify with this workflow would be the contents of the installer_input.txt file and the license file unless you have other modifications to make.
Posted on 03-18-2021 11:16 AM
Thank you @unknown_err , I am also trying to make this work. I am not sure if something is wrong with my postflight script, but it should work as is right?
Posted on 03-22-2021 06:52 AM
@jchen1225 Yes, it should work as is for the workflow using the Packages app or as long as the postflight script is in the same directory as the installer_input.txt file and the other Matlab installer files.
Posted on 03-25-2021 03:50 AM
Thanks @unknown_err , it works great with R2021a as well.
Posted on 11-17-2021 09:52 AM
Anyone know if there is a way to do this without providing a license? I want to make the installer available but ask the user for a license key (or have them login to their MatLab account).
Posted on 11-17-2021 11:30 AM
You can use: https://github.com/primalcurve/matlab-packager
or the first workflow and no license in the installer file. Then its installing and asking for the key after opening Matlab
Posted on 03-24-2023 06:52 AM
Steps have changed slightly "R2023a"
"$INSTALL_DIR"/install -inputFile "$INSTALL_DIR"/installer_input.txt
Posted on 08-15-2023 07:48 AM
Nice thanks, are you building the package on Intel still? I don't think package app works on Silicon machines...
Posted on 08-24-2024 09:21 PM
Thank you for your guidance in detail.
I need to do the packaging of Matlab R2024a
Are there any changes, or is it still the same?
Posted on 08-18-2023 05:22 AM
Yes on both no problem, but we only have Silicons here a handfull Intels left.
Posted on 08-26-2024 03:44 AM
@Hasibravo I would wait a while until the problems are fixed. We are still on version 2023a and it runs stably and does not crash on intel and silicon.
But steps remain the same ;) https://nl.mathworks.com/matlabcentral/answers/2113686-fix-to-frequent-application-not-responding-fo...