This shows you the differences between two versions of the page.
userspace:gimp [2012/12/10 15:41] bhubal |
userspace:gimp [2021/08/23 08:37] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Gimp ====== | ||
- | 2012-12-10\\ | ||
- | Script by uib gmbh \\ | ||
- | Comments and improvements welcome \\ | ||
- | |||
- | type: localboot\\ | ||
- | id: gimp\\ | ||
- | name: GNU Image Manipulation Program\\ | ||
- | description: | ||
- | version: 2.8.0\\ | ||
- | |||
- | |||
- | Full package: http:// | ||
- | |||
- | |||
- | |||
- | ==== gimp.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 >= 4.11.2 | ||
- | setloglevel = 6 | ||
- | |||
- | DefVar $LogDir$ | ||
- | Set $LogDir$ = " | ||
- | DefVar $ProductId$ | ||
- | DefVar $MinimumSpace$ | ||
- | DefVar $NewExe$ | ||
- | DefVar $InstallDir$ | ||
- | DefVar $ExitCode$ | ||
- | DefVar $LicenseRequired$ | ||
- | DefVar $LicenseKey$ | ||
- | DefVar $LicensePool$ | ||
- | DefVar $OSArchitecture$ | ||
- | |||
- | set $OSArchitecture$ = GetSystemType | ||
- | ; ---------------------------------------------------------------- | ||
- | ; - Please edit the following values | ||
- | ; ---------------------------------------------------------------- | ||
- | Set $ProductId$ | ||
- | if $OSArchitecture$ = "64 Bit System" | ||
- | Set $MinimumSpace$ | ||
- | Set $InstallDir$ | ||
- | else | ||
- | Set $MinimumSpace$ | ||
- | Set $InstallDir$ | ||
- | endif | ||
- | |||
- | Set $NewExe$ | ||
- | ; ---------------------------------------------------------------- | ||
- | |||
- | 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 | ||
- | |||
- | Message " | ||
- | |||
- | comment "Start setup program" | ||
- | Winbatch_install | ||
- | Sub_check_exitcode | ||
- | |||
- | comment "Test for installation success" | ||
- | if not(FileExists($NewExe$)) | ||
- | logError " | ||
- | isFatalError | ||
- | endif | ||
- | endif | ||
- | |||
- | [Winbatch_install] | ||
- | " | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to GIMP exit codes see help | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | logError "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | logError "Setup failed to initialize." | ||
- | else | ||
- | if ( ($ExitCode$ = " | ||
- | logError "The user aborted installation." | ||
- | else | ||
- | if ( ($ExitCode$ = " | ||
- | logError "A fatal error occurred." | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | isFatalError | ||
- | endif | ||
- | |||
- | </ | ||
- | ==== delsub.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:// | ||
- | |||
- | DefVar $MsiId$ | ||
- | Set $MsiId$ = ' | ||
- | |||
- | Message " | ||
- | |||
- | if FileExists($InstallDir$ + " | ||
- | comment " | ||
- | Winbatch_uninstall | ||
- | sub_check_exitcode | ||
- | endif | ||
- | |||
- | [Winbatch_uninstall] | ||
- | " | ||
- | |||
- | [Sub_check_exitcode] | ||
- | comment "Test for installation success via exit code" | ||
- | set $ExitCode$ = getLastExitCode | ||
- | ; informations to GIMP exit codes see help | ||
- | if ($ExitCode$ = " | ||
- | comment "Looks good: setup program gives exitcode zero" | ||
- | else | ||
- | logError "Setup program gives a exitcode unequal zero: " + $ExitCode$ | ||
- | if ($ExitCode$ = " | ||
- | logError "Setup failed to initialize." | ||
- | else | ||
- | if ( ($ExitCode$ = " | ||
- | logError "The user aborted installation." | ||
- | else | ||
- | if ( ($ExitCode$ = " | ||
- | logError "A fatal error occurred." | ||
- | endif | ||
- | endif | ||
- | endif | ||
- | isFatalError | ||
- | endif | ||
- | </ | ||
- | |||