Had some issues deploying Matlab Runtime 9.4 (2018a) to our clients. I initially deployed Matlab with the latest version of PSADT but the setup.exe failed within 1 second. Sometimes when I pressed the Retry button in Software Center it did install, but I do not want to bother my users with pressing Retry.
After many failed attempts with PSADT I tried to run the setup.exe directly from within the MECM deployment type filling the install program path with setup.exe -agreetolicense yes -mode silent parameters. That also did not work but it gave me an error log file in the c:\windows\ccmcache\z folder.
The error was:
There is insufficient memory for the Java Runtime Environment to continue.
Native memory allocation (malloc) failed to allocate 1048576 bytes for AllocateHeap
The solution is to Run installation and uninstall program as a 32-bit process on 64-bit clients.
So I checked the “Run installation and uninstall program as a 32-bit process on 64-bit clients” and it worked.
Now I’m wondering if there is such an option for the PSADT. I’m guessing that when I check the Run installation and uninstall… checkbox, the Invoke-AppDeployToolkit.exe wil run as a 32-bit process, but will the setup.exe inside the Invoke-AppDeployToolkit.ps1 also run as a 32-bit process ?
Hi @MRE
Please could you do us a favour and edit your last post and wrap your log within the preformatted text (Use the </> button on the toolbar) - It makes it so much easier to read
alternatively put ``` on a line above and on a line below the log
We can then see where the log finishes and your comments start
Thank You
Hi, I was looking for an option to upload the log in .txt format, but there wasn’t.
I edited my post as per your suggestion, thanks.
I just switched back to deploying the Matlab application without the use of PSADT and checked the Run installation an uninstall as 32-bit process and it installed again without any issues.
Are there any other suggestions I can try within the PSADT to run the setup.exe as a 32bit process ?
Install-ADTDeployment, C:\WINDOWS\ccmcache\l\Invoke-AppDeployToolkit.ps1: line 172
and
C:\WINDOWS\ccmcache\l\Invoke-AppDeployToolkit.ps1: line 356
I'm not familiar with the application you are referring to, but I wonder if the .exe you are running is an MSI wrapper, I very much doubt it has succeeded after 1 second, but is an exit code of 1 from the app actually success?
Did the app install?
as you can pass -SuccessExitCodes 1,2 to the Start-ADTProcess command
as per example 1:
Also if it is an exe wrapper around an MSI, you might want the -WaitForMsiExec switch
and maybe it needs to wait for any Child processes that are spawned to complete WaitForChildProcesses
As a long shot, I wonder if the path to the log file (in your 1st post) should be quoted, so the command line should look like this:
The setup.exe is not a msi wrapper and after the setup.exe stops after barely one second, the application is not installed. Installation takes about 1 to 1.5 minutes to complete.
When you unzip Mathlab installer you get a bunch of folders together with a setup.exe. When launching this setup.exe from a commando prompt, it immediately ends and calls a second setup.exe. This can be seen when using taskmanager.
Inside the \bin\win64 folder there is also a setup.exe. From searching various forums I found out that this setup.exe works better than the one in the root of the folder.
Regarding the log path should be between quotes: I tested this and the setup.exe is very picky about this. Leaving it without quotes simply works.
One thing to mention is that the setup.exe in the root can be used with the argument -inputfile installer_input.txt.
If any of the install commands these posts mention don't help you, you could send a direct message to each of these users to see how they achieved it in the end?
I’ve read the silent installer guides from Mathworks but forgot to search the PSADT forum for similar problems with Mathlab.
For now, the “Run installation and uninstall as a 32-bit process on 64-bit clients“ option on the Program tab of the MECM Deployment type worked. Hopefully in the future the PSADT will have a similar option. I have te feeling that the Invoke-AppDeployToolkit.exe /32 does not cover it all.