I have an install i would like to ignore the fetal error for, and continue with the installation. I have tried with ContinueOnError and Passthru however it just exits the psadt scirpt.
Code:
test1:
$exitCodeOLE = Execute-MSI -Action 'Install' -Path "$dirFiles\msoledbsql.msi" -Parameters 'IACCEPTMSOLEDBSQLLICENSETERMS=YES /norestart /QN' -Passthru $true -ContinueOnError $true
test2:
$exitCodeOLE = Execute-MSI -Action 'Install' -Path "C:\temp\VimbizOLE\Files\msoledbsql.msi" -Parameters 'IACCEPTMSOLEDBSQLLICENSETERMS=YES /norestart /QN' -Passthru $true
Write-Log $exitCodeOLE
Log:
<![LOG[[Installation] :: Executing [C:\Windows\System32\msiexec.exe /i "C:\temp\VimbizOLE\Files\msoledbsql.msi" TRANSFORMS="True" TRANSFORMSSECURE=1 IACCEPTMSOLEDBSQLLICENSETERMS=YES /norestart /QN /L*v "C:\Windows\Logs\Software\msoledbsql_Install.log"]...]LOG]!><time="15:20:25.66260" date="02-09-2024" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="14684" file="Deploy-Application.ps1">
<![LOG[[Installation] :: PassThru parameter specified, returning execution results object.]LOG]!><time="15:20:25.79560" date="02-09-2024" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="1" thread="14684" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Getting message for exit code [1624].]LOG]!><time="15:20:25.80360" date="02-09-2024" component="Get-MsiExitCodeMessage" context="NT-MYNDIGHET\SYSTEM" type="1" thread="14684" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Execution failed with exit code [1624]: Feil ved implementering av endringer. Kontroller at angitte endringsbaner er gyldige.]LOG]!><time="15:20:25.80960" date="02-09-2024" component="Execute-Process" context="NT-MYNDIGHET\SYSTEM" type="3" thread="14684" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Closing the installation progress dialog.]LOG]!><time="15:20:25.82960" date="02-09-2024" component="Close-InstallationProgress" context="NT-MYNDIGHET\SYSTEM" type="1" thread="14684" file="Deploy-Application.ps1">
<![LOG[[Installation] :: Closing the installation progress dialog's runspace.]LOG]!><time="15:20:25.83960" date="02-09-2024" component="Close-InstallationProgress" context="NT-MYNDIGHET\SYSTEM" type="1" thread="14684" file="Deploy-Application.ps1">
Is there any way of getting past the exit of psadt so the code continues?