How to continue on failure

(imported topic written by SystemAdmin)

Completed continue if {not exists service “NimbusWatcherService”}

Completed waithidden {name of drive of windows folder}\nimsoft\install1.cmd

Failed continue if {not exists service “NimbusWatcherService”}

waithidden {name of drive of windows folder}\nimsoft\install2.cmd

continue if {not exists service “NimbusWatcherService”}

waithidden {name of drive of windows folder}\nimsoft\install3.cmd

dos rmdir /S /Q {name of drive of windows folder}\nimsoft

im trying to run 1 out of 3 of the install.cmd files, if the first one failes it continues on to the second one

that works fine… but i want to run the last command and delete the directory when finished

once it fails the fixlet is done and ends without running the last command

how can i run the last command on success of 1 of the 3 commands… ?

(imported comment written by SystemAdmin)

When you log in bigfix log of the client, does it say why it failed?

I was performing a action similiar to yours, but to delete a regkey instead. Have you tried using if\endif statements instead?

example:

if {not exists service “NimbusWatcherService”}

waithidden {name of drive of windows folder}\nimsoft\install1.cmd

endif

if {not exists service “NimbusWatcherService”}

waithidden {name of drive of windows folder}\nimsoft\install2.cmd

endif

if {not exists service “NimbusWatcherService”}

waithidden {name of drive of windows folder}\nimsoft\install3.cmd

endif

waithidden cmd.exe /C rmdir /Q /S “{name of drive of windows folder}\nimsoft”