This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
userspace:irfanview_4.3 [2012/12/12 11:24] bhubal created |
userspace:irfanview_4.3 [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Irfan View 4.3 ====== | + | ====== Irfan View 4.33 ====== |
2012-12-12\\ | 2012-12-12\\ | ||
Script by uib gmbh \\ | Script by uib gmbh \\ | ||
Comments and improvements welcome \\ | Comments and improvements welcome \\ | ||
+ | Tested with opsi 4.0.2\\ | ||
+ | |||
type: localboot\\ | type: localboot\\ | ||
Line 11: | Line 13: | ||
Full package: http:// | 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 $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 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== delsub.ins ==== | ||
+ | |||
+ | <code winst> | ||
+ | ; Message at install time: | ||
+ | Message " | ||
+ | |||
+ | comment "start uninstall program if exists" | ||
+ | if FileExists($InstallDir$+" | ||
+ | Winbatch_uninstall | ||
+ | sub_check_exitcode | ||
+ | endif | ||
+ | |||
+ | comment " | ||
+ | Files_uninstall | ||
+ | |||
+ | comment "clear start menu" | ||
+ | LinkFolder_uninstall | ||
+ | |||
+ | [Winbatch_uninstall] | ||
+ | " | ||
+ | |||
+ | [Files_uninstall] | ||
+ | del -sf " | ||
+ | |||
+ | [LinkFolder_uninstall] | ||
+ | set_basefolder common_programs | ||
+ | delete_subfolder $ProductId$ | ||
+ | |||
+ | [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 " | ||
+ | else | ||
+ | if ($ExitCode$ = " | ||
+ | comment "looks good: setup program gives exitcode 3010" | ||
+ | comment " | ||
+ | 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$ | ||
+ | DefVar $licensepool$ | ||
+ | |||
+ | ; This should be edited | ||
+ | set $ProductId$ = " | ||
+ | set $InstallDir$=" | ||
+ | |||
+ | comment "show product picture" | ||
+ | ShowBitmap " | ||
+ | |||
+ | if FileExists(" | ||
+ | | ||
+ | sub " | ||
+ | endif | ||
+ | |||
+ | </ | ||