I’m still pretty new to the App Deployment Toolkit. I’ve already packaged and deployed two apps using it through Intune, and those went smoothly. But of course, on the third try, I hit a wall.
Here’s the deal: I’m using version 4.06 and trying to deploy an MSI installer. The installer works fine when I run it locally through the command line with silent switches — so I figured this would be a breeze.
Nope.
First, I tried the zero-config method. Dropped the MSI into the Files folder and left Deploy-Application.ps1 basically empty. That gave me an ADT-Process error 1603 when I was using Intune. Locally ran the script and it installs the software.
Then I tried adding this to the install block: Start-ADTProcess -FilePath "xx.msi" -Argument "S"
Realized I didn’t need the argument, so I removed it — still got an error saying it’s not a valid application for this OS platform.
Next, I tried Start-ADTMSIProcess -FilePath, but that threw a 60001 syntax error. Locally ran the script and it installs the software.
So I ditched the zero-config idea and filled in the $appName variable, then used: Start-ADTMSIProcess -FilePath "xx.msi"
Still no luck — Intune threw the random XX has failed.
I know version 4.05 had a bug with zero-config MSI installs, which is why I upgraded to 4.06. But I feel like I’m missing something super small and obvious… I just can’t figure out what it is.
Found no application based on the supplied FilterScript.]LOG]!><time= component="Get-ADTApplication" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: [C:\WINDOWS\system32\msiexec.exe] is a valid fully qualified path, continue.]LOG]!><time="" date="" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Checking to see if mutex [Global\_MSIExecute] is available. Wait up to [10 minute(s)] for the mutex to become available.]LOG]!><time="" date="" component="Test-ADTMutexAvailability" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Mutex [Global\_MSIExecute] is available for an exclusive lock.]LOG]!><time="" date="" component="Test-ADTMutexAvailability" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Working Directory is [C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Files].]LOG]!><time="" date="" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Executing [C:\WINDOWS\system32\msiexec.exe /i "C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Files\_2.3.6_Windows_64bit.msi" REBOOT=ReallySuppress /QB-! /L*V "C:\WINDOWS\Logs\Software\"]...]LOG]!><time= component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Execution failed with exit code [1603].]LOG]!><time="" date="" component="Start-ADTProcess" context="NT AUTHORITY\SYSTEM" type="3" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Execution failed with exit code [1603].
Error Record:
-------------
Message : Execution failed with exit code [1603].
FullyQualifiedErrorId : ProcessExitCodeError,Start-ADTMsiProcess
ScriptStackTrace : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 20256
at Start-ADTMsiProcess<Process>, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19546
at Install-ADTDeployment, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1: line 156
at <ScriptBlock>, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1: line 313
PositionMessage : At C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1:156 char:9
+ Start-ADTMsiProcess -FilePath 'Setup_Windows_64bi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="" date="" component="Start-ADTMsiProcess" context="NT AUTHORITY\SYSTEM" type="3" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Install] :: Error Record:
-------------
Message : Execution failed with exit code [1603].
FullyQualifiedErrorId : ProcessExitCodeError,Start-ADTMsiProcess
ScriptStackTrace : at Start-ADTProcess<Process>, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 20256
at Start-ADTMsiProcess<Process>, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1: line 19546
at Install-ADTDeployment, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1: line 156
at <ScriptBlock>, C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1: line 313
PositionMessage : At C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1:156 char:9
+ Start-ADTMsiProcess -FilePath 'Windows_64bi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
]LOG]!><time="component="Invoke-AppDeployToolkit.ps1" context="NT AUTHORITY\SYSTEM" type="3" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\Invoke-AppDeployToolkit.ps1">
<![LOG[[Finalization] :: Closing the installation progress dialog.]LOG]!><time=" date="" component="Close-ADTInstallationProgressFluent" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Finalization] :: [Setup] install completed with exit code [60001].]LOG]!><time="" date="" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="3" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
<![LOG[[Finalization] :: *******************************************************************************]LOG]!><time="" date="" component="Close-ADTSession" context="NT AUTHORITY\SYSTEM" type="1" thread="23280" file="C:\WINDOWS\IMECache\69d4b1d7-9d33-4b50-a820-50d949baf7db_12\PSAppDeployToolkit\PSAppDeployToolkit.psm1">
Looks like an exit code 1603. If I’m reading the forums right, it seems to be the msiexec command with the parameters not being right? But why would the software install when I run it locally?
I think I found out what was creating the problem.
The MSI seems to be trying to install the software in the user folder. However, when the software is getting pushed from Intune, it’s a system installation. I think that’s why its failing. The installation is trying to write to a user folder.
Now I’m thinking that maybe I could change the directory of where it would be installed.
If I wanted to install the program in Program files, could the above work?