Is there an option for verbose or debug log file when installing MATLAB?

33 visualizaciones (últimos 30 días)
Brian Carty
Brian Carty el 18 de Jun. de 2019
Comentada: Matt Seng el 26 de Sept. de 2019
Been having issues with installing MATLAB R2019a (and R2018b and R2018a) and I'm wondering if the installer has any option for generating a more detailed log file?

Respuestas (4)

Brian Carty
Brian Carty el 20 de Jun. de 2019
So I've got a follow up question. Under certain circumstances during a silent install, it seems like the java VM used by the MATLAB installer runs out of memory and exits, so the install fails.
Are there any options within the installer_input file or at the command line to increase the memory available to java?
  6 comentarios
Brian Carty
Brian Carty el 25 de Jul. de 2019
I pinged MATLAB support about this again (and didn't mention SCCM at all). They confirmed that you can't change anything for the memory allocate to java.
I also tested manually increasing the size of the Windows paging file on a machine where the install was failing (bumped it up to 8GB minimum). The attempt after that succeeded. I've only tried this once so I can't guarantee it's an absolute fix, but it's something. Changing the paging file requires a reboot though, so it's not really practical to use in a SCCM deployment.
Elke Zimmermanns
Elke Zimmermanns el 26 de Jul. de 2019
We are seeing the same issue on our lab machines with the silent SCCM install.
I'd really appreciate a solution to this as it is a major hassle which we never had on Windows 7 machines.
I've been able to install on most of our machines by splitting the install into three parts and making them depended.
I'm using installer input files to install:
1. MATLAB, MATLAB Compiler and MATLAB Compiler SDK first.
2. All of Simulink with Control System Toolbox, MATLAB Coder and MATLAB Report Generator.
3. All other toolboxes we are licensed for.

Iniciar sesión para comentar.


Shashank Sharma
Shashank Sharma el 19 de Jun. de 2019
The answer to the above question contains the location of the logs created during matlab installation.
It also allows you to force creation of log files using command line.
  1 comentario
Brian Carty
Brian Carty el 19 de Jun. de 2019
Yes I know of those options. I was wondering if there were additional options for a more detailed log.

Iniciar sesión para comentar.


Stephen Emert
Stephen Emert el 18 de Jul. de 2019
Editada: Stephen Emert el 19 de Jul. de 2019
In case anyone else comes here for info related to our discussion above, there is also a thread about this problem on Reddit:
No answers to be found there but a lot of things were tried. So save yourself some time and read through it. Do not reinvent the (broken) wheel trying to solve the issue.
  1 comentario
Matt Seng
Matt Seng el 26 de Sept. de 2019
For future readers, the Reddit thread was updated with a solution. The OP now links to this Technet thread in which the one and only Jason Sandys provides some workarounds.
The one that worked for me is checking the "run install as 32-bit process" box in the SCCM application's deployment type's properties.

Iniciar sesión para comentar.


Brian Carty
Brian Carty el 25 de Jul. de 2019
Also, for now I've adjusted the powershell script I use in my R2019a deployment so that it will create a one-time scheduled task that will run 3 minutes later to install MATLAB. Not ideal but it should work.
Param (
[parameter(Mandatory=$True)]
[string]$Release = ''
)
$installDIR = "C:\Program Files\Matlab\$Release"
$registry = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Matlab $Release"
#Check if program directory already exists and delete it if it does
if(Test-Path $installDIR){
try{
Remove-Item $installDIR -Force -Recurse -ErrorAction Stop}
catch{
exit 63}
}
Start-Process -FilePath .\setup.exe -ArgumentList '-inputfile installer_input.txt' -Wait
$setup = "powershell.exe"
$arg = "-nologo -File install-matlab.ps1 -Release $Release"
$user = "NT AUTHORITY\SYSTEM"
$name = "MATLAB $Release"
#Check if MATLAB install succeeded. If not, create one-time scheduled task to install it.
if ((Get-ItemProperty -Path $registry -ErrorAction SilentlyContinue).DisplayName -eq $name) {
exit 0
}else{
$Task = New-ScheduledTaskAction -Execute $setup -Argument $arg -WorkingDirectory $pwd
$TaskTrigger = New-ScheduledTaskTrigger -Once -At (get-date).AddSeconds(180)
Register-ScheduledTask -Action $Task -Trigger $TaskTrigger -User $user -RunLevel Highest -TaskName "Install MATLAB $Release" -Description "One-time task to install MATLAB $Release if SCCM deployment failed."
}

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by