This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:a_master_copy_for_inserting_scripts_-_eine_vorlage_um_einstellen_von_scripten [2014/08/25 14:39] GEI |
userspace:a_master_copy_for_inserting_scripts_-_eine_vorlage_um_einstellen_von_scripten [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
\\ | \\ | ||
- | ====== | + | ====== |
- | Tested with opsi 4.0.1\\ | + | Tested with opsi 4.0.4\\ |
- | requiredWinstVersion >= 4.11.3.6\\ | + | requiredWinstVersion >= 4.11.2.\\ |
- | By //[[krummel@gei.de|GEI]] 2014/08/24 18:08// | + | By //[[opsi@gei.de|GEI]] 2014/11/11 17:00// |
+ | placed in global library, such as %ScriptDrive$/ | ||
+ | call with | ||
+ | <code winst> | ||
+ | include_insert %ScriptDrive%/ | ||
+ | </ | ||
- | === check_install4j-exitcode.ins | + | === === |
<code winst> | <code winst> | ||
- | ; Exitcodes from: | + | |
- | ; http://resources.ej-technologies.com/install4j/help/doc/ | + | ; and published under the Terms of the General Public License. |
+ | ; credits: | ||
+ | ; | ||
+ | ; written by GEI (Detlef Krummel | ||
+ | ; FILE " | ||
- | ; ExitCode from called installers | + | requiredWinstVersion > |
- | set $ExitCode$ = getLastExitCode | + | |
+ | | ||
+ | Set | ||
+ | setLogLevel = 6 | ||
+ | ; --------------------------------- sample values --------------------------------------------------- | ||
+ | ; 0)id=owncloud | ||
+ | ; 3)advice=(aktualisiert am 4.9.2014) | ||
+ | ; 6)priority=0 | ||
+ | ; 9)lastactionresult=successful | ||
+ | ; | ||
- | setLogLevel = 4 | + | DefVar |
- | if ($ExitCode$ = "0") | + | |
- | comment " | + | |
- | else | + | Set |
- | if ($ExitCode$ = "1") | + | |
- | logError " | + | |
- | IsFatalError | + | |
- | else | + | Set |
- | if ($ExitCode$ = "83") | + | DefVar |
- | logError " | + | Set |
- | IsFatalError | + | |
- | else | + | |
- | logError | + | |
- | endif | + | Set |
- | endif | + | DefVar |
- | endif | + | Set |
- | setLogLevel | + | |
+ | | ||
+ | | ||
+ | Set | ||
+ | DefVar | ||
+ | Set | ||
+ | DefVar | ||
+ | Set | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
</ | </ | ||
- | ==== Steps ==== | + | ==== sample |
- | - save this script to %ScriptDrive% or %ScriptPath% | + | |
- | - call this check with Sub " | + | |
- | - Install4j-Setup-Installer used by Java-Programs example Spark (Messenger) | + | |
- | + | ||
- | [[opsiscript templates|check_install4j-exitcode.ins]] | + | |
+ | (include before) | ||
+ | <code winst> | ||
+ | set $Setupfile$ = " | ||
+ | </ | ||