06.03.2013 Views

opsi Version 3.3.1 - opsi Download - uib

opsi Version 3.3.1 - opsi Download - uib

opsi Version 3.3.1 - opsi Download - uib

SHOW MORE
SHOW LESS

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 />

icon_file: %ProgramFilesDir%\<strong>opsi</strong>.org\inied\config_prog.ico<br />

icon_index: 0<br />

end_link<br />

set_link<br />

name: WinMerge<br />

target: %ProgramFilesDir%\WinMerge\WinMerge.exe<br />

parameters:<br />

working_dir: $TEMP$<br />

icon_file: %ProgramFilesDir%\WinMerge\WinMerge.exe<br />

icon_index: 0<br />

end_link<br />

4.3.1.7.2.4. System software dependencies<br />

At first in the wInst script you have to declare for which system software (or groups of<br />

system software) the script is valid. At any point the script can detect the current OS<br />

and perform different tasks according to the OS.<br />

In the [action] section of the wInst script the system software can be detected by calling<br />

the function GetOS. The return value of GetOS is one of the following:<br />

"Windows_16"<br />

"Windows_95"<br />

"Windows_NT"<br />

- return value = “Windows_95” for Win95, Win98 and WinME<br />

- return value = “Windows_NT” for Windows NT 4.0, Windows 2000 and Windows XP<br />

If the return value is “Windows_NT”, the minor version can be retrieved by calling the<br />

function GetNT<strong>Version</strong>. One of the following values will be returned:<br />

"NT4"<br />

"Win2k"<br />

"WinXP"<br />

"Win NT 5.2" (e.g. Windows Server 2003 R2 Enterprise Edition)<br />

A single script can handle different operating systems by using 'if' statements:<br />

DefVar $OS$<br />

set $OS$ = GetOS<br />

DefVar $MinorOS$<br />

set $MinorOS$ = GetNT<strong>Version</strong><br />

; ... perform any tasks for all of the Windows versions<br />

59

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

Saved successfully!

Ooh no, something went wrong!