This shows you the differences between two versions of the page.
userspace:gimp [2012/12/10 15:48] 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 | ||
- | </ | ||
- | |||
- | ==== update.ins ==== | ||
- | <code winst> | ||
- | |||
- | [actions] | ||
- | requiredWinstVersion >= 4.11.2 | ||
- | setloglevel = 6 | ||
- | |||
- | comment "Show product picture" | ||
- | ShowBitmap " | ||
- | message "File Associations ..." | ||
- | |||
- | if " | ||
- | registry_file_association_bmp | ||
- | endif | ||
- | if " | ||
- | registry_file_association_cel | ||
- | endif | ||
- | if " | ||
- | registry_file_association_dicom | ||
- | endif | ||
- | if " | ||
- | registry_file_association_fit | ||
- | endif | ||
- | if " | ||
- | registry_file_association_g3 | ||
- | endif | ||
- | if " | ||
- | registry_file_association_gif | ||
- | endif | ||
- | if " | ||
- | registry_file_association_ico | ||
- | endif | ||
- | if " | ||
- | registry_file_association_jpeg | ||
- | endif | ||
- | if " | ||
- | registry_file_association_matte | ||
- | endif | ||
- | if " | ||
- | registry_file_association_pcx | ||
- | endif | ||
- | if " | ||
- | registry_file_association_png | ||
- | endif | ||
- | if " | ||
- | registry_file_association_pnm | ||
- | endif | ||
- | if " | ||
- | registry_file_association_ps | ||
- | endif | ||
- | if " | ||
- | registry_file_association_psd | ||
- | endif | ||
- | if " | ||
- | registry_file_association_psp | ||
- | endif | ||
- | if " | ||
- | registry_file_association_ras | ||
- | endif | ||
- | if " | ||
- | registry_file_association_sgi | ||
- | endif | ||
- | if " | ||
- | registry_file_association_svg | ||
- | endif | ||
- | if " | ||
- | registry_file_association_tga | ||
- | endif | ||
- | if " | ||
- | registry_file_association_tif | ||
- | endif | ||
- | if " | ||
- | registry_file_association_wmf | ||
- | endif | ||
- | if " | ||
- | registry_file_association_xbm | ||
- | endif | ||
- | if " | ||
- | registry_file_association_xpm | ||
- | endif | ||
- | if " | ||
- | registry_file_association_xrd | ||
- | endif | ||
- | |||
- | |||
- | [registry_file_association_bmp] | ||
- | openkey [HKEY_CLASSES_ROOT\.bmp] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-bmp] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-bmp\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-bmp\shell\open\command] | ||
- | set "" | ||
- | |||
- | [registry_file_association_cel] | ||
- | openkey [HKEY_CLASSES_ROOT\.cel] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-cel] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-cel\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-cel\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_dicom] | ||
- | openkey [HKEY_CLASSES_ROOT\.dcm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.dicom] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-dicom] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-dicom\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-dicom\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_fit] | ||
- | openkey [HKEY_CLASSES_ROOT\.fit] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.fits] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-fit] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-fit\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-fit\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_g3] | ||
- | openkey [HKEY_CLASSES_ROOT\.g3] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-g3] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-g3\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-g3\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_gif] | ||
- | openkey [HKEY_CLASSES_ROOT\.gif] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-gif] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-gif\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-gif\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_ico] | ||
- | openkey [HKEY_CLASSES_ROOT\.ico] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ico] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ico\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ico\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_jpeg] | ||
- | openkey [HKEY_CLASSES_ROOT\.jpeg] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.jpg] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-jpeg] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-jpeg\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-jpeg\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_matte] | ||
- | openkey [HKEY_CLASSES_ROOT\.alpha] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.als] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.mask] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.matte] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.pix] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-matte] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-matte\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-matte\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | |||
- | [registry_file_association_pcx] | ||
- | openkey [HKEY_CLASSES_ROOT\.pcx] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-pcx] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-pcx\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-pcx\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_png] | ||
- | openkey [HKEY_CLASSES_ROOT\.png] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-png] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-png\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-png\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_pnm] | ||
- | openkey [HKEY_CLASSES_ROOT\.pbm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.pgm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.pnm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.ppm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-pnm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-pnm\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-pnm\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_ps] | ||
- | openkey [HKEY_CLASSES_ROOT\.eps] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.ps] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ps] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ps\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ps\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_psd] | ||
- | openkey [HKEY_CLASSES_ROOT\.psd] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-psd] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-psd\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-psd\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_psp] | ||
- | openkey [HKEY_CLASSES_ROOT\.psp] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.pspimage] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.tub] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-psp] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-psp\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-psp\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | |||
- | [registry_file_association_ras] | ||
- | openkey [HKEY_CLASSES_ROOT\.im1] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.im24] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.im32] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.im8] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.ras] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.rs] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ras] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ras\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-ras\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_sgi] | ||
- | openkey [HKEY_CLASSES_ROOT\.bw] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.rgb] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.sgi] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-sgi] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-sgi\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-sgi\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_svg] | ||
- | openkey [HKEY_CLASSES_ROOT\.svg] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-svg] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-svg\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-svg\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_tga] | ||
- | openkey [HKEY_CLASSES_ROOT\.tga] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-tga] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-tga\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-tga\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_tif] | ||
- | openkey [HKEY_CLASSES_ROOT\.tif] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.tiff] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-tif] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-tif\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-tif\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_wmf] | ||
- | openkey [HKEY_CLASSES_ROOT\.wmf] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-wmf] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-wmf\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-wmf\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_xbm] | ||
- | openkey [HKEY_CLASSES_ROOT\.bitmap] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.icon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\.xbm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xbm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xbm\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xbm\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_xpm] | ||
- | openkey [HKEY_CLASSES_ROOT\.xpm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xpm] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xpm\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xpm\shell\open\command] | ||
- | set "" | ||
- | |||
- | |||
- | [registry_file_association_xrd] | ||
- | openkey [HKEY_CLASSES_ROOT\.xwd] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xwd] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xwd\DefaultIcon] | ||
- | set "" | ||
- | openkey [HKEY_CLASSES_ROOT\GIMP-2.8-xwd\shell\open\command] | ||
- | set "" | ||
- | </ | ||