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

43 ビュー (過去 30 日間)
Brian Carty
Brian Carty 2019 年 6 月 18 日
コメント済み: Matt Seng 2019 年 9 月 26 日
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?

回答 (4 件)

Brian Carty
Brian Carty 2019 年 6 月 20 日
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 件のコメント
Brian Carty
Brian Carty 2019 年 7 月 25 日
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 2019 年 7 月 26 日
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.

サインインしてコメントする。


Shashank Sharma
Shashank Sharma 2019 年 6 月 19 日
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 件のコメント
Brian Carty
Brian Carty 2019 年 6 月 19 日
Yes I know of those options. I was wondering if there were additional options for a more detailed log.

サインインしてコメントする。


Stephen Emert
Stephen Emert 2019 年 7 月 18 日
編集済み: Stephen Emert 2019 年 7 月 19 日
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 件のコメント
Matt Seng
Matt Seng 2019 年 9 月 26 日
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.

サインインしてコメントする。


Brian Carty
Brian Carty 2019 年 7 月 25 日
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."
}

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by