Difference between revisions of "Gimp"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Added help for version 2.6, configure help system)
Line 9: Line 9:
 
   id="gimp26"
 
   id="gimp26"
 
   name="GNU Image Manipulation Program (GIMP)"
 
   name="GNU Image Manipulation Program (GIMP)"
   revision="2606"
+
   revision="2607"
 
   reboot="false"
 
   reboot="false"
 
   priority="20">
 
   priority="20">
   <check type="uninstall" condition="exists" path="GIMP 2.6.6"/>
+
   <check type="uninstall" condition="exists" path="GIMP 2.6.7"/>
   <install cmd='"%SOFTWARE%\gimp\gimp-2.6.6-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
+
   <install cmd='"%SOFTWARE%\gimp\gimp-2.6.7-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
   <upgrade cmd='"%SOFTWARE%\gimp\gimp-2.6.6-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
+
   <upgrade cmd='"%SOFTWARE%\gimp\gimp-2.6.7-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
 
   <remove cmd='"%programfiles%\GIMP\setup\unins000.exe" /VERYSILENT /NORESTART' />
 
   <remove cmd='"%programfiles%\GIMP\setup\unins000.exe" /VERYSILENT /NORESTART' />
 
</package>
 
</package>
  
 +
</source>
 +
 +
Gimp 2.6 for Windows does not come with the Help Browser, however by default Gimp is configured to use the Help Browser. To correct this add the following.
 +
 +
<source lang="xml">
 +
<install cmd='"%SOFTWARE%\gimp\gimp26_prefs.bat"' />
 +
<upgrade cmd='"%SOFTWARE%\gimp\gimp26_prefs.bat"' />
 +
</source>
 +
 +
<source lang="dos">
 +
REM gimp26_prefs.bat
 +
echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP\etc\gimp\2.0\gimprc"
 +
REM Other defaults can also be defined here.  Possible defaults are documented in gimprc.
 
</source>
 
</source>
  
Line 56: Line 69:
  
 
</package>
 
</package>
 +
</source>
 +
<source lang="xml">
 +
<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>
 +
 
</source>
 
</source>
  
 
GIMP-Help doesn't create an Add/Remove programs entry.
 
GIMP-Help doesn't create an Add/Remove programs entry.
  
The above remove command will work when any spoken language help files are installed.
 
  
 
== GTK ==
 
== GTK ==

Revision as of 22:43, 1 November 2009

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

<package
  id="gimp26"
  name="GNU Image Manipulation Program (GIMP)"
  revision="2607"
  reboot="false"
  priority="20">
  <check type="uninstall" condition="exists" path="GIMP 2.6.7"/>
  <install cmd='"%SOFTWARE%\gimp\gimp-2.6.7-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
  <upgrade cmd='"%SOFTWARE%\gimp\gimp-2.6.7-i686-setup.exe" /VERYSILENT /NORESTART /DIR="%PROGRAMFILES%\GIMP"'/>
  <remove cmd='"%programfiles%\GIMP\setup\unins000.exe" /VERYSILENT /NORESTART' />
</package>

Gimp 2.6 for Windows does not come with the Help Browser, however by default Gimp is configured to use the Help Browser. To correct this add the following.

 <install cmd='"%SOFTWARE%\gimp\gimp26_prefs.bat"' />
 <upgrade cmd='"%SOFTWARE%\gimp\gimp26_prefs.bat"' />
REM gimp26_prefs.bat
echo (help-browser web-browser) >> "%PROGRAMFILES%\GIMP\etc\gimp\2.0\gimprc"
REM Other defaults can also be defined here.  Possible defaults are documented in gimprc.

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>

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.