Differences

This shows you the differences between two versions of the page.

Link to this comparison view

userspace:library:check_install4j-exitcode [2014/09/08 09:09] (current)
n.wenselowski Moving this here from the default template.
Line 1: Line 1:
 +
 +====== check_install4j-exitcode.ins ======
 +
 +
 +Tested with opsi 4.0.1\\
 +requiredWinstVersion >= 4.11.3.6\\
 +By //​[[krummel@gei.de|GEI]] 2014/08/24 18:08//
 +
 +
 +
 +=== check_install4j-exitcode.ins ===
 +<code winst>
 +; Exitcodes from:  ​
 +; http://​resources.ej-technologies.com/​install4j/​help/​doc/​indexRedirect.html?​http&&&​resources.ej-technologies.com/​install4j/​help/​doc/​helptopics/​installers/​errors.html
 +
 +; ExitCode from called installers
 +set $ExitCode$ = getLastExitCode
 +
 +setLogLevel = 4
 +if ($ExitCode$ = "​0"​)
 + comment "​ExitCode = "​+$ExitCode$+"​ Normal execution (no error)"​
 +else
 + if ($ExitCode$ = "​1"​)
 + logError "​ExitCode = "​+$ExitCode$+"​ Installation fails"
 + IsFatalError
 + else
 + if ($ExitCode$ = "​83"​)
 + logError "​ExitCode = "​+$ExitCode$+"​ failed - installer could not find a suitable JVM to run"
 + IsFatalError
 + else
 + logError "​ExitCode = "​+$ExitCode$+"​ unknown error"
 + endif
 + endif
 +endif
 +setLogLevel = 6
 +</​code>​
 +
 +==== Steps ====
 +  - save this script to %ScriptDrive% or %ScriptPath%
 +  - call this check with Sub "​%ScriptDrive%\check_install4j-exitcode.ins" ​
 +  - Install4j-Setup-Installer used by Java-Programs example Spark (Messenger)
  

QR Code
QR Code userspace:library:check_install4j-exitcode (generated for current page)