Skip to content

opsi.orgheader image

opsi.org
Views
WinstScripts >>

VLC

Document Actions
last edited 2 years ago by djockheck
[Initial]
Message=Installiere VLC-Player
;Erstellt am 24.04.2008
LogLevel=2
ExitOnError=false
ScriptErrorMessages=on
TraceMode=off


[Aktionen]

DefVar $ProduktName$
set $ProduktName$ = "vlc"
;Variable f�r tempor�res Verzeichnis
DefVar $Temp$
set $Temp$ = EnvVar("TEMP")
;Variablen f�r BetriebssystemsVersion (OS)-Test
DefVar $OS$
set $OS$ = GetOS

DefVar $MinorOS$
set $MinorOS$ = GetNTVersion

DefVar $MinSpace$
set $MinSpace$ = "10 MB"

; Beispiel fuer Schalter
;DefVar $IniVar_Access_Runtime$
;set $IniVar_Access_Runtime$ = IniVar("access_runtime")

if ( $OS$ = "Windows_NT" OR $OS$ = "Windows_95" )
; show product picture (max. 160x160 Pixel)
  ShowBitmap /2 "%scriptpath%\sonne.bmp" "ADP-Softwarepacket"
  ShowBitmap /3 "%scriptpath%\"+$ProduktName$+".bmp" $ProduktName$
  if not (HasMinimumSpace ("%Systemdrive%",$MinSpace$))
    LogError "Nicht genuegend Speicherplatz auf %SystemDrive%! $MinSpace$ erforderlich")
    isFatalError
    stop "Nicht genuegend Speicherplatz auf %SystemDrive%! $MinSpace$ erforderlich"
  endif
  ; Fehlerzaehler zurueck setzen
  markErrorNumber
  if fileexists( "%ProgramFilesDir%\VideoLan\VLC\uninstall.exe" )
    WinBatch_uninstall
  endif
  WinBatch_install
  if errorsOccuredSinceMark > 0
    isFatalError
    comment "Fehler aufgetreten"
  else
    comment "kein Fehler aufgetreten"
  endif
endif

; ExitWindows /RebootWanted

[WinBatch_uninstall]
%ProgramFilesDir%\VideoLan\VLC\uninstall.exe /S

[WinBatch_install]
%ScriptPath%\files\vlc-0.8.6f-win32.exe /S