While this is not strictly a PSADT error, I figured that I can’t be the only one trying to install MATLAB…
For context, as it’s for Intune, I’m not using the usual staged silent install that’s GB+++.
Instead, I want to do an interactive install so I can package the bare minimum and let the user choose which modules they need.
Also, this is R2024a and we’re switching to SSO for the license as well.
Currently packaging using PSADT 4.0.6. If I launch Invoke-AppDeployToolkit.exe locally, it executes exactly as I need it to.
When I test it with Intune, it downloads and installs fine, but then throws an error in the app’s own post-installation steps (PSADT still thinks we’re running setup.exe).
Have you tried it without ServiceUI? Even though the process is still running as SYSTEM, ServiceUI operates at a “medium” integrity level and can cause some installations to not function as you’d expect. You can read more about that here: Mandatory Integrity Control - Wikipedia
If it does work without ServiceUI, you’ve got three options:
Don’t use ServiceUI and just silently install the app.
Wait for us to get 4.1.0 out the door, we’re aiming to not need ServiceUI to present a GUI anymore
Run the installation via the Task Scheduler in Windows, as it’ll operate with a higher integrity level.
I haven’t tried without, I’ll need to see what I need to change to make it a silent install (as a test anyway) and give it a go.
I have tried the other way round (using ServiceUI locally) and that worked fine, but based on what you say that may not have been useful.
Do you have an ETA for 4.1.0 at this stage?
I was wondering about using Start-ADTProcessAsUser with the -UseLinkedAdminToken argument, but I haven’t found much info about it (or if it would help). Are you able to shed some light?
If using ServiceUI locally worked fine, then it’s likely something else. I remember having issues with AutoCAD software via Intune and the solution was to run it through the task scheduler, possibly due to an integrity issue of its own: Reddit - The heart of the internet
Maybe we’ll look at adding a Start-ADTProcessViaScheduledTask function to provide this if it’s indeed the issue here for you.
On, regarding 4.1.0, hopefully before the quarter is out, but quality is our priority first and foremost so if it needs to slip to make sure it’s top notch, it’ll slip.