This shows you the differences between two versions of the page.
userspace:vlc_2.0.2_mediaplayer [2012/12/12 12:35] bhubal created |
userspace:vlc_2.0.2_mediaplayer [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== vlc 2.0.2 ====== | ||
- | 2012-12-12\\ | ||
- | Script by uib gmbh \\ | ||
- | Comments and improvements welcome \\ | ||
- | Tested with opsi 4.0.2\\ | ||
- | |||
- | |||
- | type: localboot\\ | ||
- | id: vlc\\ | ||
- | name: VideoLAN - VLC media player\\ | ||
- | description: | ||
- | It can also convert media files, transcode and act as a streaming server over unicast or multicast and IPv4 or IPv6. It doesn' | ||
- | version: 2.0.2\\ | ||
- | |||
- | Full package: http:// | ||
- | |||
- | ==== setup.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | [actions] | ||
- | requiredWinstVersion >= " | ||
- | setloglevel = 6 | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $NewExe$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $UserProfileName$ | ||
- | DefStringList $UserProfileNamesList$ | ||
- | DefVar $AppDataDirName$ | ||
- | DefVar $proxy$ | ||
- | |||
- | set $ProductId$ = " | ||
- | set $MinimumSpace$ = "200 MB" | ||
- | Set $InstallDir$ | ||
- | set $NewExe$ = $InstallDir$ + " | ||
- | set $proxy$ = GetProductProperty(" | ||
- | |||
- | Message " | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SYSTEMDRIVE%: | ||
- | isFatalError | ||
- | else | ||
- | comment "show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment | ||
- | sub " | ||
- | endif | ||
- | |||
- | Message " | ||
- | |||
- | comment "Start setup program" | ||
- | Winbatch_install | ||
- | sub_check_exitcode | ||
- | |||
- | comment "what is the name of the Application Data Dir ?" | ||
- | Set $AppDataDirName$ = TakeString(-1, | ||
- | if getMsVersionInfo >= " | ||
- | set $AppDataDirName$ = " | ||
- | endif | ||
- | |||
- | comment " | ||
- | |||
- | ; | ||
- | Set $UserProfileNamesList$ = getOutStreamFromSection(' | ||
- | for %prof% in $UserProfileNamesList$ do Sub_update_user_profile | ||
- | |||
- | comment " | ||
- | LinkFolder_remove_desktop_link | ||
- | |||
- | comment "test for installation success" | ||
- | if not(FileExists($NewExe$)) | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | endif | ||
- | |||
- | [LinkFolder_remove_desktop_link] | ||
- | set_basefolder common_desktopdirectory | ||
- | set_subfolder "" | ||
- | delete_element "VLC media player" | ||
- | |||
- | [DosInAnIcon_list_profiledir] | ||
- | @echo off | ||
- | dir " | ||
- | |||
- | [Winbatch_install] | ||
- | ; | ||
- | " | ||
- | |||
- | [Sub_update_user_profile] | ||
- | Set $UserProfileName$ = " | ||
- | if not ($UserProfileName$ = "" | ||
- | if FileExists(" | ||
- | comment "VLC user profile exist for user " + $UserProfileName$ + ", patching" | ||
- | Patches_vlcrc " | ||
- | else | ||
- | comment " | ||
- | Files_copy_vlc_profile_template | ||
- | endif | ||
- | if not ($proxy$ = "" | ||
- | Patches_vlcrc_proxy " | ||
- | endif | ||
- | endif | ||
- | |||
- | [Files_copy_vlc_profile_template] | ||
- | copy -s " | ||
- | |||
- | [Patches_vlcrc] | ||
- | set [qt4] qt-updates-notif=0 | ||
- | |||
- | [Patches_vlcrc_proxy] | ||
- | set [access_http] http-proxy=$proxy$ | ||
- | |||
- | [sub_check_exitcode] | ||
- | comment "test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | Exitwindows /Reboot | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | Exitwindows /Reboot | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | </ | ||
- | |||
- | ==== delsub.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; delsub for vlc | ||
- | |||
- | Message " | ||
- | DefVar $UninstallProgram$ | ||
- | Set $UninstallProgram$ = $InstallDir$ + " | ||
- | |||
- | comment "Start uninstall program if exists" | ||
- | if FileExists($UninstallProgram$) | ||
- | Winbatch_uninstall / | ||
- | ; | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | comment " | ||
- | Files_uninstall | ||
- | |||
- | [Winbatch_uninstall] | ||
- | " | ||
- | |||
- | [Files_uninstall] | ||
- | del -sf " | ||
- | |||
- | [sub_check_exitcode] | ||
- | comment "test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to exit codes see | ||
- | ; http:// | ||
- | ; http:// | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode zero" | ||
- | else | ||
- | comment "Setup program gives a exitcode unequal zero: " | ||
- | if ($ExitCode$ = " | ||
- | comment " | ||
- | comment " | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 1641" | ||
- | comment " | ||
- | Exitwindows /Reboot | ||
- | else | ||
- | if ($ExitCode$ = " | ||
- | comment "looks good: setup program gives exitcode 3010" | ||
- | comment " | ||
- | Exitwindows /Reboot | ||
- | else | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | |||
- | </ | ||
- | |||
- | ==== uninstall.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | setLogLevel = 6 | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $ExitCode$ | ||
- | |||
- | ; This should be edited | ||
- | set $ProductId$ = " | ||
- | Set $InstallDir$ | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment | ||
- | sub " | ||
- | endif | ||
- | |||
- | </ | ||
- | |||
- | ==== login.ins ==== | ||
- | |||
- | <code winst> | ||
- | ; Copyright (c) uib gmbh (www.uib.de) | ||
- | ; This sourcecode is owned by uib gmbh | ||
- | ; and published under the Terms of the General Public License. | ||
- | ; credits: http:// | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | setloglevel = 6 | ||
- | |||
- | DefVar $proxy$ | ||
- | set $proxy$ = GetProductProperty(" | ||
- | |||
- | Message " | ||
- | comment "Did we run this script before ? - and set version stamp in profile" | ||
- | if getValue(" | ||
- | comment " | ||
- | if not (scriptWasExecutedBefore) | ||
- | comment " | ||
- | if FileExists(" | ||
- | comment "VLC user profile exist for user " + $UserProfileName$ + ", patching" | ||
- | Patches_vlcrc " | ||
- | else | ||
- | comment " | ||
- | Files_copy_vlc_profile_template | ||
- | endif | ||
- | if not ($proxy$ = "" | ||
- | Patches_vlcrc_proxy " | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | |||
- | [Files_copy_vlc_profile_template] | ||
- | copy -s " | ||
- | |||
- | [Patches_vlcrc] | ||
- | set [qt4] qt-updates-notif=0 | ||
- | |||
- | [Patches_vlcrc_proxy] | ||
- | set [access_http] http-proxy=$proxy$ | ||
- | |||
- | |||
- | </ | ||