cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Azef123
Level 3

Stop install when Powershell script error

Hello,

I have a Powershell script during installation. If there is an error in Powershell script the installation continues !
I would like to stop setup if there is a error during the execution Powershell script.

(When my PowerShell script success I use exit(0).)

Thank you for your help
Labels (1)
0 Kudos
(3) Replies
Azef123
Level 3

So how to interact a Powershell script with Installshiel ?
0 Kudos
JSClark
Level 6

In your Custom Action calling the Powershell script is the Return Processing set to (Ignores exit code) instead of (Check exit code)?
0 Kudos
ssuriyap
Level 3

throw uncaught exception or use EXIT in your ps1.
0 Kudos