lujomu Posted May 31, 2015 Report Share Posted May 31, 2015 Hi! I am quite certain this must have come up before, but I can't find any relevant topic. I am trying to abort a batch setup script. I have tried the following lines: exit 1 exit 2 exit 3 exit /B 1 exit /B 2 exit /B 3 But no matter what, Ketarin always prompts "{App}: Installed successfully". For good meassure I tried the C# equivalent: Abort( "Something went wrong!"); And this yields a nice "{App}: Setup failed (Something went wrong!)" message. Could someone please enlighten me - what am I missing? Cheers, lujomu Link to comment Share on other sites More sharing options...
shawn Posted June 3, 2015 Report Share Posted June 3, 2015 exit 1 Is how you do it. Info here: http://wiki.ketarin.org/index.php/Commands Can you share your script that's failing? Link to comment Share on other sites More sharing options...
lujomu Posted June 3, 2015 Author Report Share Posted June 3, 2015 I used exactly that single line as test script. And it does work for the application specific pre-update command, but I am talking about the application specific setup command (http://wiki.ketarin.org/index.php/Setup_instructions). As this seems to work for some commands but not for others, I checked them each individually (Ketarin v1.7.1.434): C# test script: Abort("Error"); C# test script results: Default pre-update command in settings: Throws error. Application specific pre-update command: Throws error. Default post-update command in settings: Throws error. Application specific post-update command: Throws error. Command to execute after updating all applications: No error. Application specific setup command: Throws error. Batch test script: exit 1 Batch test script results: Default pre-update command in settings: Throws error. Application specific pre-update command: Throws error. Default post-update command in settings: No error. Application specific post-update command: Throws error. Command to execute after updating all applications: No error. Application specific setup command: No error. As the results differ for both kind of scripts, I doubt this is intentional. Can someone else reproduce this? Might this be a bug? Link to comment Share on other sites More sharing options...
lujomu Posted June 11, 2015 Author Report Share Posted June 11, 2015 *bump* (Sorry, don't know how else to get attention from a mod/dev.) Link to comment Share on other sites More sharing options...
necrox Posted June 16, 2015 Report Share Posted June 16, 2015 I can reproduce this. I guess it is a bug. Maybe Floele has time to take a look at this. Link to comment Share on other sites More sharing options...
lujomu Posted August 19, 2015 Author Report Share Posted August 19, 2015 Should this topic maybe be moved to "Bugs" to catch Floele's attention/be considered for fixing? Link to comment Share on other sites More sharing options...
floele Posted August 19, 2015 Report Share Posted August 19, 2015 I'm not aware of any "Abort" functionality. Whatever that it, it's not meant to be supported to results are pretty much undefined. Exit codes are not currently checked in setup instructions, so that is rather a feature request than a bug to fix Link to comment Share on other sites More sharing options...
lujomu Posted August 20, 2015 Author Report Share Posted August 20, 2015 Ok, I see. Thanks for the clarification! Feature request it is, then: https://ketarin.userecho.com/topic/857577-evaluate-exit-codes-in-setup-scripts-eg-to-abort-installation/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now