opsi Version 3.3.1 - opsi Download - uib
opsi Version 3.3.1 - opsi Download - uib
opsi Version 3.3.1 - opsi Download - uib
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4. Localboot products: automatic software distribution with <strong>opsi</strong><br />
reboot the first task is to evaluate the status flag and continue with the next part of<br />
the installation process. The flag handling might look like this:<br />
Set $WinstRegKey = "HKLM\SOFTWARE\<strong>opsi</strong>\winst"<br />
Set $RebootFlag = GetRegistryStringValue ("[" + $WinstRegKey + "] " +<br />
"RebootFlag")<br />
if not ($RebootFlag = "1")<br />
;=========================<br />
;<br />
; instructions before reboot ...<br />
; ... any actions to perform before reboot<br />
Set $RebootFlag = "1"<br />
Registry_SaveRebootFlag<br />
ExitWindows /ImmediateReboot<br />
else<br />
endif<br />
;=========================<br />
;<br />
; instructions after reboot ...<br />
; set back rebootflag<br />
Set $RebootFlag = "0"<br />
Registry_SaveRebootFlag<br />
; ... any actions to perform after reboot<br />
In addition there is a wInst section required for handling the status flag:<br />
[Actions]<br />
[Registry_SaveRebootFlag]<br />
openKey [$WinstRegKey]<br />
set "RebootFlag" = "$RebootFlag"<br />
4.3.1.7.2.2. Files copy<br />
The available copy commands are described in the wInst handbook.<br />
4.3.1.7.2.3. Start menu entries<br />
In the wInst script the start menu entries can be set by a link folder section and the<br />
following request:<br />
[LinkFolder_adminutils]<br />
set_basefolder common_programs<br />
set_subfolder "Admin Utils"<br />
set_link<br />
name: Ini-Editor<br />
target: javaw.exe<br />
parameters: -jar %ProgramFilesDir%\<strong>opsi</strong>.org\inied\inied.jar<br />
working_dir: $TEMP$<br />
58