Difference between revisions of "Gimp"
(New Version 2.6.8 (Installer for 2.6.9 still missing) and Help Browser 'Fix') |
(Update for 2.6.10 and rearrange sections) |
||
Line 5: | Line 5: | ||
== GIMP 2.6 == | == GIMP 2.6 == | ||
− | + | Note that the file name of the installer for 2.6.10 has an extra "-1" on the end: gimp-2.6.10-i686-setup-1.exe. Either remove it when you download or remember to remove it from the package definition when the next version doesn't have it. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<source lang="xml"> | <source lang="xml"> | ||
Line 42: | Line 11: | ||
id="gimp" | id="gimp" | ||
name="GNU Image Manipulation Program (GIMP)" | name="GNU Image Manipulation Program (GIMP)" | ||
− | revision=" | + | revision="%version%" |
reboot="false" | reboot="false" | ||
− | priority=" | + | priority="20"> |
− | < | + | <variable name="version" value="2.6.10" /> |
− | <check type="uninstall" condition="exists" path="GIMP | + | <check type="uninstall" condition="exists" path="GIMP %version%" /> |
− | <install cmd='"%SOFTWARE%\gimp\gimp- | + | <install cmd='"%SOFTWARE%\gimp\gimp-%version%-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP-2.0"' /> |
− | < | + | <upgrade cmd='"%SOFTWARE%\gimp\gimp-%version%-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP-2.0"' /> |
+ | <remove cmd='"%PROGRAMFILES%\GIMP-2.0\setup\unins000.exe" /VERYSILENT /NORESTART' > | ||
+ | <exit code="1" /> | ||
+ | </remove> | ||
+ | <remove cmd='%COMSPEC% /c rmdir /s /q "%PROGRAMFILES%\GIMP-2.0"' /> | ||
</package> | </package> | ||
+ | </source> | ||
+ | |||
+ | === Help Browser Fix === | ||
+ | |||
+ | 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 the 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. | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <install cmd='%COMSPEC% /c echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' /> | ||
+ | <install cmd='%COMSPEC% /c echo (user-manual-online yes) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' /> | ||
+ | |||
+ | <upgrade cmd='%COMSPEC% /c echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' /> | ||
+ | <upgrade cmd='%COMSPEC% /c echo (user-manual-online yes) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' /> | ||
</source> | </source> | ||
Line 133: | Line 118: | ||
See also a silent installer and uninstaller for [[GTK2_runtime]]. | See also a silent installer and uninstaller for [[GTK2_runtime]]. | ||
+ | |||
+ | == Older Versions == | ||
+ | |||
+ | === GIMP 2.4.6 === | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <package | ||
+ | id="gimp" | ||
+ | name="GNU Image Manipulation Program (GIMP)" | ||
+ | revision="2460" | ||
+ | reboot="false" | ||
+ | priority="10"> | ||
+ | |||
+ | <!-- Download: http://downloads.sourceforge.net/gimp-win/gimp-2.4.6-i686-setup.exe --> | ||
+ | |||
+ | <check type="uninstall" condition="exists" path="GIMP 2.4.6"/> | ||
+ | |||
+ | <install cmd='"%SOFTWARE%\gimp\gimp-2.4.6-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/> | ||
+ | |||
+ | <remove cmd='"%programfiles%\GIMP\setup\unins000.exe" /VERYSILENT /NORESTART' /> | ||
+ | |||
+ | </package> | ||
+ | </source> | ||
+ | |||
[[Category: Silent Installers]] | [[Category: Silent Installers]] | ||
[[Category: Inno Setup]] | [[Category: Inno Setup]] |
Revision as of 23:40, 3 September 2010
These are silent installer entries for GIMP, GIMP-Help and GTK (available from http://gimp-win.sourceforge.net/stable.html):
NOTE: /SILENT Shows progress, /VERYSILENT is truely SILENT and has no dialogue boxes at all (running the gimp .exe with /? reveals all the switches).
GIMP 2.6
Note that the file name of the installer for 2.6.10 has an extra "-1" on the end: gimp-2.6.10-i686-setup-1.exe. Either remove it when you download or remember to remove it from the package definition when the next version doesn't have it.
<package
id="gimp"
name="GNU Image Manipulation Program (GIMP)"
revision="%version%"
reboot="false"
priority="20">
<variable name="version" value="2.6.10" />
<check type="uninstall" condition="exists" path="GIMP %version%" />
<install cmd='"%SOFTWARE%\gimp\gimp-%version%-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP-2.0"' />
<upgrade cmd='"%SOFTWARE%\gimp\gimp-%version%-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP-2.0"' />
<remove cmd='"%PROGRAMFILES%\GIMP-2.0\setup\unins000.exe" /VERYSILENT /NORESTART' >
<exit code="1" />
</remove>
<remove cmd='%COMSPEC% /c rmdir /s /q "%PROGRAMFILES%\GIMP-2.0"' />
</package>
Help Browser Fix
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 the 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-2.0\etc\gimp\2.0\gimprc"' />
<install cmd='%COMSPEC% /c echo (user-manual-online yes) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' />
<upgrade cmd='%COMSPEC% /c echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' />
<upgrade cmd='%COMSPEC% /c echo (user-manual-online yes) >> "%PROGRAMFILES%\GIMP-2.0\etc\gimp\2.0\gimprc"' />
GIMP-Help
<package
id="gimphelp"
name="The Gimp help files"
revision="0"
reboot="false"
priority="20">
<check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\share\gimp\2.0\help\images\callouts\1.png"/>
<install cmd='%SOFTWARE%\gimp\gimp-help-2-0.9-setup.exe SP- /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
</package>
<package
id="gimphelp26"
name="The Gimp help files"
revision="2"
reboot="false"
priority="4">
<depends package-id="gimp26" />
<check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\share\gimp\2.0\help\en\images\home.png"/>
<install cmd='%SOFTWARE%\gimp\gimp-help-2-2.6.0-en-setup.exe SP- /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
<remove cmd='cmd /c del "%ProgramFiles%\gimp\share\gimp\2.0\help\en\images\home.png"' />
</package>
GIMP-Help doesn't create an Add/Remove programs entry.
GTK
<package
id="gtk"
name="GTK"
revision="0"
reboot="false"
priority="0">
<check type="file" condition="exists" path="%COMMONPROGRAMFILES%\GTK\2.0\bin\libgtk-win32-2.0-0.dll"/>
<install cmd="%SOFTWARE%\gimp\gtk+-2.6.9-setup.exe SP- /SILENT /NORESTART"/>
<remove cmd='"%CommonProgramFiles%"\GTK\2.0\unins000.exe" /SILENT'/>
</package>
Note that the check condition here relies on a version-specific file which could change, libgtk-win32-2.0.0.dll.
Package for newer gtk-2.10:
<package
id="gtk"
name="gtk+ 2.10.11"
revision="1"
reboot="false"
priority="0">
<check type="uninstall" condition="exists" path="GTK+ 2.10.11 runtime environment"/>
<install cmd='%SOFTWARE%\gimp\gtk+-2.10.11-setup.exe SP- /SILENT /NORESTART'/>
<remove cmd='"%CommonProgramFiles%"\GTK\2.0\setup\unins000.exe" /SILENT'/>
</package>
See also a silent installer and uninstaller for GTK2_runtime.
Older Versions
GIMP 2.4.6
<package
id="gimp"
name="GNU Image Manipulation Program (GIMP)"
revision="2460"
reboot="false"
priority="10">
<!-- Download: http://downloads.sourceforge.net/gimp-win/gimp-2.4.6-i686-setup.exe -->
<check type="uninstall" condition="exists" path="GIMP 2.4.6"/>
<install cmd='"%SOFTWARE%\gimp\gimp-2.4.6-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
<remove cmd='"%programfiles%\GIMP\setup\unins000.exe" /VERYSILENT /NORESTART' />
</package>