Gimp

These are silent installer entries for GIMP and GIMP Help (available from ftp://ftp.gimp.org/pub/gimp/v2.8/windows/ ).

GIMP 2.10

Note that from GIMP 2.8, the uninstaller unins000.exe has been moved from the 'setup' directory to the 'uninst' directory, and must be called with /VERYSILENT to run successfully.

<package 
	id="gimp" 
	name="GNU Image Manipulation Program (GIMP)" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="10">
	
	<variable name="PKG_VERSION"		value="2.10.18" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\GIMP"/>
	<variable name="PKG_NAME"		value="gimp-%PKG_VERSION%-setup.exe" />
	<variable name="PKG_INSTALL_SWITCH"	value="/VERYSILENT /NORESTART" />
	<variable name="PKG_REMOVE_SWITCH"	value="/VERYSILENT /NORESTART" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\GIMP 2" />

	<check type="uninstall" condition="exists" path="GIMP %PKG_VERSION%" />
				 
	<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
					
	<upgrade include="install" />
				 
	<remove cmd='"%PKG_DESTINATION%\uninst\unins000.exe" %PKG_REMOVE_SWITCH%'>
		<exit code="1" />
	</remove>
	<remove cmd='%COMSPEC% /C if not exist "%PKG_DESTINATION%\uninst\unins000.exe" rmdir /S /Q "%PKG_DESTINATION%"'>
		<exit code="1" />
	</remove>
</package>

This package has been tested on: XP, VISTA, 7, 10 - both 32 and 64 BIT

GIMP-Help (Russian language version)

From version 2.8 Gimp help have unins001.exe file in "GIMP 2\uninst\unins001.exe".

<package 
	id="gimp-help-ru" 
	name="GIMP Help Russian" 
	revision="%PKG_VERSION%" 
	reboot="false" 
	priority="0">

	<depends package-id="gimp" />

	<variable name="PKG_VERSION"		value="2.10.0" />
	<variable name="PKG_SOURCE"		value="%SOFTWARE%\GIMP"/>
	<variable name="PKG_NAME"		value="gimp-help-%PKG_VERSION%-ru-setup.exe" />
	<variable name="PKG_INSTALL_SWITCH"	value="/VERYSILENT /NORESTART" />
	<variable name="PKG_REMOVE_SWITCH"	value="/VERYSILENT /NORESTART" />
	<variable name="PKG_DESTINATION"	value="%PROGRAMFILES%\GIMP 2" />

	<check type="file" condition="exists" path="%PKG_DESTINATION%\share\gimp\2.0\help\ru\index.html" />
				 
	<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%'>
		<exit code="3" />
	</install>
	
 	<upgrade include="remove" />			 
 	<upgrade include="install" />
				 
	<remove cmd='"%PKG_DESTINATION%\uninst\unins001.exe" %PKG_REMOVE_SWITCH%'>
		<exit code="1" />
	</remove>
</package>

Additional Information: -GIMP-Help doesn't create an Add/Remove programs entry. -Tested on Windows XP, VISTA, 7, 10 both 32 and 64 BIT

GIMP 2.6 Help Browser Fix

This may or may not be necessary in GIMP 2.8. Gimp 2.6 for Windows does not come with the Help Browser. You can either install the Help Browser or change the configuration to use a web browser instead, as shown below. Other defaults can also be defined this way. See the gimprc file for documentation on the available configuration settings.

<install cmd='%COMSPEC% /c echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP\etc\gimp\2.0\gimprc"' />

<install cmd='%COMSPEC% /c echo (user-manual-online yes) >> "%PROGRAMFILES%\GIMP\etc\gimp\2.0\gimprc"' />
 
<upgrade cmd='%COMSPEC% /c echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP\etc\gimp\2.0\gimprc"' />

<upgrade cmd='%COMSPEC% /c echo (user-manual-online yes) >> "%PROGRAMFILES%\GIMP\etc\gimp\2.0\gimprc"' />