BatchPatch Forums Home › Forums › BatchPatch Support Forum › Silent install of Matlab MCR_R2017b using Batchpatch
- This topic has 7 replies, 3 voices, and was last updated 6 years, 4 months ago by doug.
-
AuthorPosts
-
November 10, 2017 at 7:20 pm #8918bobklosakParticipant
I am trying to do a unattended install on remote hosts of R2017B.
I have a batchpatch in my environment which greatly assists with this and I was looking at document http://www.mathworks.com/help/install/ug/install-noninteractively-silent-installation.html to assist me.
Asked same question on another thread on Matlab site: https://www.mathworks.com/matlabcentral/answers/366327-silent-install-of-matlab-mcr_r2017b-using-batchpatch
The Matlab forum post goes in more detail so you may want to reference it before answering.
November 10, 2017 at 8:21 pm #10346dougModeratorBased on reviewing their instructions I think there are a couple things you need to do.
1. From their description it sounds like there are more installation files than just the MCR_R2017b_win64_installer.exe. If there is an entire folder of installation files then you must check the box “copy entire directory” in your BatchPatch deployment configuration.
2. They are saying that you need to create a properties file template, which you can name installer_input.txt. After you input the needed/desired properties into this file according to their instructions, then you can create the deployment.
3. The deployment configuration must copy the entire directory that contains the MCR_R2017b_win64_installer.exe along with the installer_input.txt file to the target computer. This is accomplished by having the installer_input.txt file in the same folder as the MCR_R2017b_win64_installer.exe. Then tick the box as mentioned in step 1 to “copy entire directory”. Additionally you would need to add the following parameter to the parameters field in the deployment configuration of BatchPatch.
-inputFile installer_input.txt
You will *not* need to modify the ‘command to execute’ field in BatchPatch. However, when the deployment is properly configured it should show:
"MCR_R2017b_win64_installer.exe" -inputFile installer_input.txt
December 11, 2017 at 10:53 pm #10286bobklosakParticipantI cant seem to get ANY software I try to deploy through batchpatch to work.
June 25, 2018 at 11:44 am #10120ODParticipantI am struggling too to install Matlab 2015b with BP. Running the Batchfile manually works fine. This is the content of my batchfile
copy network.lic “C:Temp” /Y
copy installer_input.txt” “C:Temp” /Y
\serverinstallMathworksR2015bsetup.exe -inputFile C:tempinstaller_input.txt
I keep getting Exit Code:1385
June 25, 2018 at 2:21 pm #10121bobklosakParticipantI never got it to work….but I am going to revisit it now.
June 25, 2018 at 6:16 pm #10122dougModeratorDo not use a batch file. Instead create a deployment following the tutorials at software-deployment
This would entail placing all of the files for installation/configuration into a single directory. Then create a deployment to deploy the setup.exe from that directory, and check the box that says “copy entire directory.” Then put the following line into the parameters field:
-inputFile installer_input.txt
You will *not* need to modify the ‘command to execute’ field in BatchPatch. However, when the deployment is properly configured it should show:
"setup.exe" -inputFile installer_input.txt
June 26, 2018 at 9:58 am #10125ODParticipantHi Doug
Thank you for your feedback. I know your way works.
What I don’t like is that I need to copy 6.7GB on each machine to install Matlab and I need to install it on 60+ machines.
I guess it is either that or visiting all machines and run my Install batchfile to avoid copying 6.7 GB.
June 26, 2018 at 12:22 pm #10126dougModeratorThe data has to get to the machine one way or another. If you manually launch your batch file, when it runs the setup.exe don’t you think the files have to be copied from the network share to the computer anyway? After all, the files are needed for and part of the installation. What’s the difference if they are copied/staged by BP or copied when the setup.exe is launched by the batch file? Is there something that I’m missing? Also note, in this case you should start with the files on the BP computer instead of the network share. This would halve the time required to perform the copy because the data would not have to get pulled down from the share through the BP computer to each target. Instead it would just be copied from the BP computer directly to each target. I’m not certain why your batch file is failing. You could try using full path in the copy commands, and you could try setting remote execution context (Tools>Settings>Remote Execution) to ‘elevated token’ instead of ‘system’ because ‘system’ does not have network access.
-
AuthorPosts
- You must be logged in to reply to this topic.