Silent install of Matlab MCR_R2017b using Batchpatch

BatchPatch Forums Home Forums BatchPatch Support Forum Silent install of Matlab MCR_R2017b using Batchpatch

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8918
    bobklosak
    Participant

    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.

    #10346
    doug
    Moderator

    Based 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

    #10286
    bobklosak
    Participant

    I cant seem to get ANY software I try to deploy through batchpatch to work.

    #10120
    OD
    Participant

    I 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

    #10121
    bobklosak
    Participant

    I never got it to work….but I am going to revisit it now.

    #10122
    doug
    Moderator

    Do 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

    #10125
    OD
    Participant

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

    #10126
    doug
    Moderator

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.