This shows you the differences between two versions of the page.
userspace:irfanview_4.x [2011/11/11 10:26] jabdoa [delsub.ins] remove "M" which broke script |
userspace:irfanview_4.x [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== IrfanView 4.x ====== | ||
- | |||
- | |||
- | Tested with opsi 4.0.1\\ | ||
- | requiredWinstVersion >= 4.10.8.6\\ | ||
- | Files can be downloaded at http:// | ||
- | |||
- | By // | ||
- | |||
- | Tree:\\ | ||
- | delsub.ins\\ | ||
- | i_view32.ini\\ | ||
- | irfanview.jpg\\ | ||
- | irfanview_plugins_4x_setup.exe\\ | ||
- | iview4x_setup.exe\\ | ||
- | setup.ins\\ | ||
- | uninstall.ins | ||
- | |||
- | - Download the actual IrfanView-Version | ||
- | - Download the actual IrfanView-Plugins | ||
- | - Copy both to CLIENT_DATA | ||
- | - Install IrfanView on a test-system | ||
- | - Configure IrfanView as you like (especially the language!) | ||
- | - Close IrfanView | ||
- | - copy the i_view32.ini from %programfiles%\IrfanView to CLIENT_DATA | ||
- | |||
- | ==== setup.ins ==== | ||
- | <code winst> | ||
- | [Initial] | ||
- | LogLevel=9 | ||
- | ; Log Errors in Logfile but don't abort: | ||
- | ExitOnError=false | ||
- | ; Show syntax errors in the script: | ||
- | ScriptErrorMessages=on | ||
- | ; Dont trace step by step through the script: | ||
- | TraceMode=off | ||
- | ; let started programs run in front of the winst window | ||
- | StayOnTop=false | ||
- | |||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $MsiId32$ | ||
- | DefVar $UninstallProgram32$ | ||
- | DefVar $MsiId64$ | ||
- | DefVar $UninstallProgram64$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicenseKey$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_architecture$ | ||
- | DefVar $Version$ | ||
- | DefVar $Inst_Cmd32$ | ||
- | DefVar $Inst_Cmd64$ | ||
- | DefVar $Inst_Prg$ | ||
- | DefVar $Inst_Cmd_Plg$ | ||
- | DefVar $Inst_Prg_Plg$ | ||
- | |||
- | Set $INST_SystemType$ = GetSystemType | ||
- | set $INST_architecture$ = GetProductProperty(" | ||
- | |||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | ; | ||
- | ; therefore please: only lower letters, no umlauts, | ||
- | ; no white space use ' | ||
- | Set $ProductId$ | ||
- | ;Kein Punkt in der Versionsnummer! 4.30 ist 430, 4.40 ist 440 oder 4.51 ist 451! | ||
- | Set $Version$ | ||
- | Set $MinimumSpace$ | ||
- | ; the path were we find the product after the installation | ||
- | Set $InstallDir32$ | ||
- | Set $InstallDir64$ | ||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | Set $Inst_Prg$ = "" | ||
- | Set $Inst_Cmd32$ = ' /silent / | ||
- | Set $Inst_Cmd64$ = ' /silent / | ||
- | Set $Inst_Prg_Plg$ = " | ||
- | Set $Inst_Cmd_Plg$ = ' / | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | if not(HasMinimumSpace (" | ||
- | LogError "Not enough space on %SystemDrive%, | ||
- | isFatalError | ||
- | ; Stop process and set installation status to failed | ||
- | else | ||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if $LicenseRequired$ = " | ||
- | comment " | ||
- | Sub_get_licensekey | ||
- | endif | ||
- | |||
- | comment " | ||
- | |||
- | if (($INST_SystemType$ = "x86 System" | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Winbatch_install_32 | ||
- | if FileExists(" | ||
- | comment " | ||
- | Winbatch_Install_Plugins | ||
- | endif | ||
- | comment " | ||
- | Files_install_32 | ||
- | Sub_check_exitcode | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "64 Bit System" | ||
- | Message " | ||
- | comment "Start setup program" | ||
- | Winbatch_install_64 | ||
- | comment " | ||
- | if FileExists(" | ||
- | comment " | ||
- | Winbatch_Install_Plugins | ||
- | endif | ||
- | comment " | ||
- | Files_install_32 | ||
- | Sub_check_exitcode | ||
- | endif | ||
- | |||
- | endif | ||
- | |||
- | [Winbatch_install_32] | ||
- | ; Choose one of the following examples as basis for your installation | ||
- | ; You can use $LicenseKey$ var to pass a license key to the installer | ||
- | ; | ||
- | ; === Nullsoft Scriptable Install System ================================================================ | ||
- | |||
- | " | ||
- | |||
- | |||
- | [Winbatch_install_64] | ||
- | ; Choose one of the following examples as basis for your installation | ||
- | ; You can use $LicenseKey$ var to pass a license key to the installer | ||
- | ; | ||
- | ; === Nullsoft Scriptable Install System ================================================================ | ||
- | |||
- | " | ||
- | |||
- | [Winbatch_Install_Plugins] | ||
- | ; Install the addional plugins | ||
- | ; | ||
- | |||
- | " | ||
- | |||
- | [Files_install_32] | ||
- | ; Example of recursively copying some files into the installation directory: | ||
- | ; | ||
- | copy " | ||
- | |||
- | [Files_install_64] | ||
- | ; Example of recursively copying some files into the installation directory: | ||
- | ; | ||
- | copy " | ||
- | |||
- | |||
- | |||
- | [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: " + $ExitCode$ | ||
- | 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> | ||
- | [Initial] | ||
- | LogLevel=9 | ||
- | ; Log Errors in Logfile but don't abort: | ||
- | ExitOnError=false | ||
- | ; Show syntax errors in the script: | ||
- | ScriptErrorMessages=on | ||
- | ; Dont trace step by step through the script: | ||
- | TraceMode=off | ||
- | ; let started programs run in front of the winst window | ||
- | StayOnTop=false | ||
- | |||
- | [Actions] | ||
- | requiredWinstVersion >= " | ||
- | |||
- | DefVar $UninstallProgram32$ | ||
- | DefVar $UninstallProgram64$ | ||
- | DefVar $LogDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $ProductId$ | ||
- | DefVar $InstallDir32$ | ||
- | DefVar $InstallDir64$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $INST_SystemType$ | ||
- | DefVar $INST_architecture$ | ||
- | DefVar $Inst_Cmd$ | ||
- | DefVar $Inst_Prg$ | ||
- | |||
- | Set $INST_SystemType$ = GetSystemType | ||
- | set $INST_architecture$ = GetProductProperty(" | ||
- | |||
- | |||
- | Set $LogDir$ = " | ||
- | |||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | Set $InstallDir32$ | ||
- | Set $InstallDir64$ | ||
- | Set $LicenseRequired$ = " | ||
- | Set $LicensePool$ | ||
- | Set $Inst_Prg$ | ||
- | Set $Inst_Cmd$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists(" | ||
- | comment "Start uninstall sub section" | ||
- | Sub " | ||
- | endif | ||
- | |||
- | if $LicenseRequired$ = " | ||
- | comment " | ||
- | Sub_free_license | ||
- | endif | ||
- | |||
- | [Sub_free_license] | ||
- | comment " | ||
- | |||
- | comment " | ||
- | DefVar $result$ | ||
- | Set $result$ = FreeLicense($LicensePool$) | ||
- | ; If there is an assignment of a license pool to the product, it is possible to use | ||
- | ; Set $result$ = FreeLicense("", | ||
- | ; | ||
- | ; If there is an assignment of a license pool to a windows software id, it is possible to use | ||
- | ; DefVar $WindowsSoftwareId$ | ||
- | ; $WindowsSoftwareId$ = " | ||
- | ; set $result$ = FreeLicense("", | ||
- | |||
- | </ | ||
- | |||
- | ==== delsub.ins ==== | ||
- | <code winst> | ||
- | Set $UninstallProgram32$ = $InstallDir32$ + " | ||
- | Set $UninstallProgram64$ = $InstallDir64$ + " | ||
- | |||
- | if (($INST_SystemType$ = "x86 System" | ||
- | Message " | ||
- | |||
- | if FileExists($UninstallProgram32$) | ||
- | comment " | ||
- | Winbatch_uninstall_32 | ||
- | comment " | ||
- | Files_uninstall_32 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | endif | ||
- | |||
- | if ($INST_SystemType$ = "64 Bit System" | ||
- | Message " | ||
- | |||
- | if FileExists($UninstallProgram64$) | ||
- | comment " | ||
- | Winbatch_uninstall_64 | ||
- | comment " | ||
- | Files_uninstall_64 | ||
- | sub_check_exitcode | ||
- | endif | ||
- | endif | ||
- | |||
- | [Winbatch_uninstall_32] | ||
- | ; Choose one of the following examples as basis for program uninstall | ||
- | ; | ||
- | ; === Nullsoft Scriptable Install System ================================================================ | ||
- | ; " | ||
- | ; | ||
- | ; === Inno Setup ======================================================================================== | ||
- | |||
- | " | ||
- | |||
- | |||
- | [Winbatch_uninstall_64] | ||
- | ; Choose one of the following examples as basis for program uninstall | ||
- | ; | ||
- | ; === Nullsoft Scriptable Install System ================================================================ | ||
- | ; " | ||
- | ; | ||
- | ; === Inno Setup ======================================================================================== | ||
- | ; " | ||
- | |||
- | " | ||
- | |||
- | [Files_uninstall_32] | ||
- | ; Example for recursively deleting the installation directory (don't forget the trailing backslash): | ||
- | ; | ||
- | delete -sf " | ||
- | |||
- | [Files_uninstall_64] | ||
- | ; Example for recursively deleting the installation directory (don't forget the trailing backslash): | ||
- | ; | ||
- | delete -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: " + $ExitCode$ | ||
- | 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 | ||
- | |||
- | |||
- | </ | ||
- | |||
- | The following i_view32.ini is designed for the language GERMAN! IrfanView will open in full-screen-mode. | ||
- | |||
- | ==== i_view32.ini ==== | ||
- | < | ||
- | [Language] | ||
- | DLL=DEUTSCH.DLL | ||
- | Lang=Deutsch | ||
- | [Toolbar] | ||
- | Skin=Samuel_16.png | ||
- | Size=16 | ||
- | [WinPosition] | ||
- | xKoord=-4 | ||
- | yKoord=-4 | ||
- | Width=499 | ||
- | Height=358 | ||
- | Maximized=1 | ||
- | [Others] | ||
- | Test=1 | ||
- | Unicode=0 | ||
- | PropPage=8 | ||
- | </ | ||