This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:irfanview_4.3 [2012/12/12 12:18] bhubal |
userspace:irfanview_4.3 [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 13: | Line 13: | ||
Full package: http:// | Full package: http:// | ||
- | setup.ins | + | ==== setup.ins |
- | [winst | + | |
+ | <code winst> | ||
; Copyright (c) uib gmbh (www.uib.de) | ; Copyright (c) uib gmbh (www.uib.de) | ||
; This sourcecode is owned by uib | ; This sourcecode is owned by uib | ||
Line 145: | Line 146: | ||
set [Language] Lang=DEUTSCH | set [Language] Lang=DEUTSCH | ||
- | [/code] | + | </ |
+ | |||
+ | ==== 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 | ||
+ | |||
+ | </ |