This shows you the differences between two versions of the page.
userspace:irfanview_4.3 [2012/12/12 12:18] bhubal |
userspace:irfanview_4.3 [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Irfan View 4.33 ====== | ||
- | 2012-12-12\\ | ||
- | Script by uib gmbh \\ | ||
- | Comments and improvements welcome \\ | ||
- | Tested with opsi 4.0.2\\ | ||
- | |||
- | type: localboot\\ | ||
- | id: irfanview\\ | ||
- | description: | ||
- | version: 4.33\\ | ||
- | |||
- | Full package: http:// | ||
- | |||
- | setup.ins | ||
- | [winst code] | ||
- | ; 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 $UserSpecificIni$ | ||
- | |||
- | ; This should be edited | ||
- | set $ProductId$ = " | ||
- | set $MinimumSpace$ = "20 MB" | ||
- | set $InstallDir$ = " | ||
- | set $NewExe$ = $InstallDir$+" | ||
- | |||
- | Set $UserSpecificIni$ = '' | ||
- | if GetProductProperty(" | ||
- | Set $UserSpecificIni$ = '/ | ||
- | endif | ||
- | |||
- | Message " | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on C: . " | ||
- | isFatalError | ||
- | ; stop process and set installation status to failed | ||
- | else | ||
- | comment "show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment | ||
- | sub " | ||
- | endif | ||
- | |||
- | ;Message at install time: | ||
- | Message " | ||
- | |||
- | comment "start setup program" | ||
- | Winbatch_install | ||
- | sub_check_exitcode | ||
- | |||
- | comment " | ||
- | Winbatch_install_plugins | ||
- | sub_check_exitcode | ||
- | |||
- | comment "copy LANGUAGE files" | ||
- | Files_install | ||
- | |||
- | comment "set start menu" | ||
- | LinkFolder_install | ||
- | |||
- | comment "test for installation success" | ||
- | if not(FileExists($NewExe$)) | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | comment " patches Language" | ||
- | |||
- | DefVar $Ini_file$ | ||
- | Set $Ini_file$ =$InstallDir$+" | ||
- | Patches_INI $Ini_file$ | ||
- | |||
- | endif | ||
- | |||
- | [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 | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | |||
- | |||
- | |||
- | [Winbatch_install] | ||
- | " | ||
- | |||
- | [Winbatch_install_plugins] | ||
- | " | ||
- | |||
- | [Files_install] | ||
- | copy -sv " | ||
- | |||
- | [LinkFolder_install] | ||
- | set_basefolder common_programs | ||
- | set_subfolder $ProductId$ | ||
- | |||
- | set_link | ||
- | name: " | ||
- | target: $NewExe$ | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: $NewExe$ | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | set_link | ||
- | name: " | ||
- | target: $NewExe$ | ||
- | parameters: | ||
- | working_dir: | ||
- | icon_file: $NewExe$ | ||
- | icon_index: | ||
- | end_link | ||
- | |||
- | [Patches_INI] | ||
- | set [Language] DLL=DEUTSCH | ||
- | set [Language] Lang=DEUTSCH | ||
- | |||
- | [/code] |