Can't seem to wrap my head around parameters for EXE deployment

I feel like this is something I might just throw into a PowerShell in Intune and be done with it, but I feel like this is a very simple install and I am just missing something due to being new to PSADT and even newer to v4.

So, I have an installer that I can run in normal PowerShell via:

.\Install.exe --quiet --accept-eulas --prevent-reboot

However, when I try to do the same in PSADTv4, I have tried:
Start-ADTProcess -FilePath "Install.exe" -ArgumentList "--quiet --accept-eulas --prevent-reboot" -PassThru

Start-ADTProcess -FilePath "Install.exe" -ArgumentList @("--quiet", "--accept-eulas", "--prevent-reboot")

Start-ADTProcess -FilePath "$dirfiles\Install.exe" -ArgumentList "--quiet --accept-eulas --prevent-reboot"

and a handful of other things, and it does seem to at least start the install, but it always throws an error towards the end of the install. This is nearly a 3GB install, so it takes awhile and I can see it actually installing the software, but at the very end, it throws an error:

This is the application’s reboot code, but you haven’t told PSADT the reboot codes for your application.

Look at the $adtSession object at the top of your script and edit AppRebootExitCodes appropriately, then try again.


1 Like

This topic was automatically closed after 12 days. New replies are no longer allowed.