Execute step only on failure?
mmuni
Is there a possible way to trigger a step only if previous steps have failed?
For example, I have a package that I need the last step to fire no matter if the previouse steps failed or succeeded. I also don't want to tell the steps to continue on through the rest of the install proccess if their is a failure...
1
Comments
Pretty much what i'm trying to do is, on failure skip to the last step in the package.
Here is a little more info about what I'm doing, and some example steps.
Step 1: Prompt user to perform install
Step 2: lock keyboard/mouse
Step 3: Display full screen message about update warning not to turn off computer
Step 4-9: performs installation
Step 10: unlock keyboard/mouse and give control back to the user.
If step 4 fails, I dont want it to continue the rest of the install steps through step 9, However I do always want to give control back to the user weather the deploy was successful or failed.
as it is now, when the deploy fails, the user never gets back control of the computer.
Just off the top of my head, thinking out loud, etc.:
You'd probably thrown in an exit code at each failed step?