PSADT Installation fails with SCCM

Hi all,
I work since years with PSADT in intune and it works great. But now I try to create an application in SCCM and during the installation it fails with same error .■■■ attached.
Tried different Installation commands like:

  1. powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "Deploy-Application.ps1" -DeploymentType Install
    2.Deploy-Application.exe
    3.Deploy-Application.exe -DeploymentType "Install" -DeployMode "Silent" -AllowRebootPassThru

Tried with different MSI and Software, same error :frowning:

I got every time this error.
If someone can help, it would be great.

What is that Execute-Process line?
It says it is at line 212 in your Deploy-application.PS1 file.

its as usual :frowning: Execute-MSI -Action Install -Path "$dirFiles\CodeMeterRuntime64.msi" -Parameters 'ADDLOCAL=ALL /QN'

Thats helpful but not the answer we were looking for (You have supplied the Execute-MSI line).

What is that Execute-Process line?
It says it is at line 212 in your Deploy-application.PS1 file.

Hi Adrian, in line 212 its Excute-MSI, don’t have Execute-Process. The script is working fine on my VM when I execute as System and admin cmd. Intune works also fine. Its only a problem with sccm. Now I changed the parameter to: Start-Process -FilePath "msiexec.exe" -ArgumentList "/i "$dirFiles\CodeMeterRuntime64.msi" ADDLOCAL=ALL /qn" -Wait -NoNewWindow and it works fine with SCCM.
I use version 3.9.3. Execute-ProcessAsUser works also great. It’s only with Execute-MSI

Error Record:
-------------

Message        : Cannot convert value "System.Object[]" to type 
                 "System.Boolean". Boolean parameters accept only Boolean 
                 values and numbers, such as $True, $False, 1 or 0.
InnerException : System.Management.Automation.PSInvalidCastException: Cannot 
                 convert value "System.Object[]" to type "System.Boolean". 
                 Boolean parameters accept only Boolean values and numbers, 
                 such as $True, $False, 1 or 0.
                    at System.Management.Automation.ArgumentTypeConverterAttrib
                 ute.ThrowPSInvalidBooleanArgumentCastException(Type 
                 resultType, Type convertType)
                    at System.Management.Automation.ArgumentTypeConverterAttrib
                 ute.Transform(EngineIntrinsics engineIntrinsics, Object 
                 inputData, Boolean bindingParameters, Boolean 
                 bindingScriptCmdlet)

FullyQualifiedErrorId : RuntimeException
ScriptStackTrace      : at Execute-Process<Process>, C:\WINDOWS\ccmcache\1t\App
                        DeployToolkit\AppDeployToolkitMain.ps1: line 4257
                        at Execute-MSI<Process>, C:\WINDOWS\ccmcache\1t\AppDepl
                        oyToolkit\AppDeployToolkitMain.ps1: line 3663
                        at <ScriptBlock>, 
                        C:\WINDOWS\ccmcache\1t\Deploy-Application.ps1: line 203
                        at <ScriptBlock>, <No file>: line 1
                        at <ScriptBlock>, <No file>: line 1

PositionMessage : At C:\WINDOWS\ccmcache\1t\AppDeployToolkit\AppDeployToolkitMa
                  in.ps1:4257 char:17
                  + ...             [Boolean]$MsiExecAvailable = 
                  Test-IsMutexAvailable -Mutex ...
                  +                 
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Error Inner Exception(s):
-------------------------

Message        : Cannot convert value "System.Object[]" to type 
                 "System.Boolean". Boolean parameters accept only Boolean 
                 values and numbers, such as $True, $False, 1 or 0.
InnerException :