05.02.2013 Views

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

opsi manual opsi version 4.0.2 - opsi Download - uib

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>opsi</strong> <strong>manual</strong> <strong>opsi</strong> <strong>version</strong> <strong>4.0.2</strong><br />

179 / 193<br />

The changes may also be done by a <strong>opsi</strong>-winst script which can be used as stand-alone product or as update script of<br />

the <strong>opsi</strong>-client-agent.<br />

Here a example:<br />

[Actions]<br />

requiredWinstVersion >= "4.10.8.0"<br />

Message "<strong>opsi</strong>-client-agent update"<br />

ShowBitmap "%scriptpath%\<strong>opsi</strong>.png" "<strong>opsi</strong>-client-agent"<br />

DefVar $INST_BaseDir$<br />

DefVar $INST_NotifierDir$<br />

DefVar $INST_OpsiclientdDir$<br />

DefVar $INST_OpsiclientdConf$<br />

DefVar $INST_WinstDir$<br />

DefVar $OLB_LoginBlockerStart$<br />

DefVar $block_login$<br />

DefVar $winst_skin_color$<br />

DefVar $action_color$<br />

DefVar $count_event_abort$<br />

DefVar $warning_before_event_sec$<br />

Set $INST_BaseDir$ = "%ProgramFilesDir%\<strong>opsi</strong>.org\<strong>opsi</strong>-client-agent"<br />

Set $INST_OpsiclientdDir$ = $INST_BaseDir$+"\<strong>opsi</strong>clientd"<br />

Set $INST_OpsiclientdConf$ = $INST_OpsiclientdDir$+"\<strong>opsi</strong>clientd.conf"<br />

Set $INST_WinstDir$ = $INST_BaseDir$+"\<strong>opsi</strong>-winst"<br />

Set $INST_NotifierDir$ = $INST_BaseDir$+"\notifier"<br />

;set $winst_skin_color$ = "$00E7E7E7"<br />

set $winst_skin_color$ = "$00202020"<br />

set $action_color$ = "32,32,32"<br />

;Set $OLB_LoginBlockerStart$ = GetProductProperty ("LoginBlockerStart","off")<br />

set $count_event_abort$ = "2"<br />

set $warning_before_event_sec$ = "20"<br />

;if $OLB_LoginBlockerStart$ = "on"<br />

; set $block_login$ = "true"<br />

;else<br />

set $block_login$ = "false"<br />

;endif<br />

; if FileExists("%ScriptPath%\custom.ins")<br />

; comment "Start uninstall sub section"<br />

; Sub "%ScriptPath%\custom.ins"<br />

; endif<br />

Files_copy_images<br />

Patches_event_ini $INST_NotifierDir$+"\event.ini"<br />

Patches_action_ini $INST_NotifierDir$+"\action.ini"<br />

Patches_shutdown_ini $INST_NotifierDir$+"\shutdown.ini"<br />

Patches_winst_skin $INST_WinstDir$+"\winstskin\skin.ini"<br />

Patches_<strong>opsi</strong>clientd_conf $INST_OpsiclientdConf$<br />

[Files_copy_images]<br />

copy "%SCRIPTPATH%\notifier\*.*" "$INST_NotifierDir$"<br />

copy "%SCRIPTPATH%\winstskin\*.*" "$INST_WinstDir$\winstskin"<br />

[Patches_event_ini]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!