Hi everyone, the manual for the custom function “Remove-MSIApplications”, suggests it should be possible to use -ContinueOnError.
I’m performing Google Chrome cleanup, the process may fail, but I don’t want the script to stop, as I have more cleanup steps later in the script.
Current Config:
Remove-MSIApplications -Name ‘Google Chrome’ -ContinueOnError:$true -ErrorAction SilentlyContinue
Currently, any problems from the MSIEXE process, will exit the script if an error is detected, how can I force the toolkit just keep on going.
[Installation] :: Execution failed with exit code [1603]. Execute-Process 12/12/2023 11:37:07 AM 14388 (0x3834) [Installation] :: The installation progress dialog does not exist. Waiting up to 5 seconds… Close-InstallationProgress 12/12/2023 11:37:07 AM 14388 (0x3834) [Installation] :: The installation progress dialog was not created within 5 seconds. Close-InstallationProgress 12/12/2023 11:37:12 AM 14388 (0x3834) [Installation] :: RACQ_CleanMachineChrome_EN_01 Installation completed with exit code [1603]. Exit-Script 12/12/2023 11:37:12 AM 14388 (0x3834) [Installation] :: ------------------------------------------------------------------------------- Exit-Script 12/12/2023 11:37:12 AM 14388 (0x3834)