Difference between revisions of "Gimp"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(GTK)
m
Line 10: Line 10:
 
         priority="10">
 
         priority="10">
 
         <check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\bin\gimp-2.2.exe" />
 
         <check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\bin\gimp-2.2.exe" />
         <install cmd="%PACKAGES%\gimp\gimp-2.2.8-i586-setup.exe  SP- /SILENT /NORESTART /DIR=%PROGRAMFILES%\GIMP">
+
         <install cmd="%SOFTWARE%\gimp\gimp-2.2.8-i586-setup.exe  SP- /SILENT /NORESTART /DIR=%PROGRAMFILES%\GIMP" />
            <exit code="0" />
+
        </install>
+
 
     </package>
 
     </package>
  
Line 24: Line 22:
 
         priority="20">
 
         priority="20">
 
         <check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\share\gimp\2.0\help\images\callouts\1.png" />
 
         <check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\share\gimp\2.0\help\images\callouts\1.png" />
         <install cmd="%PACKAGES%\packages\gimp\gimp-help-2-0.9-setup.exe  SP- /SILENT /NORESTART  /DIR=%PROGRAMFILES%\GIMP">
+
         <install cmd="%SOFTWARE%\gimp\gimp-help-2-0.9-setup.exe  SP- /SILENT /NORESTART  /DIR=%PROGRAMFILES%\GIMP" />
            <exit code="0" />
+
        </install>
+
 
     </package>
 
     </package>
  
Line 42: Line 38:
 
         priority="0">
 
         priority="0">
 
         <check type="file" condition="exists" path="%COMMONPROGRAMFILES%\GTK\2.0\bin\libgtk-win32-2.0-0.dll" />
 
         <check type="file" condition="exists" path="%COMMONPROGRAMFILES%\GTK\2.0\bin\libgtk-win32-2.0-0.dll" />
         <install cmd="%PACKAGES%\packages\gimp\gtk+-2.6.9-setup.exe SP- /SILENT /NORESTART">
+
         <install cmd="%SOFTWARE%\gimp\gtk+-2.6.9-setup.exe SP- /SILENT /NORESTART" />
            <exit code="0" />
+
        </install>
+
 
         <remove cmd='"%CommonProgramFiles%"\GTK\2.0\unins000.exe" /SILENT' />
 
         <remove cmd='"%CommonProgramFiles%"\GTK\2.0\unins000.exe" /SILENT' />
 
     </package>
 
     </package>

Revision as of 19:43, 2 October 2006

These are silent installer entries for GIMP, GIMP-Help and GTK (available from http://gimp-win.sourceforge.net/stable.html):

GIMP

   <package
       id="gimp"
       name="The Gimp"
       revision="0"
       reboot="false"
       priority="10">
       <check type="file" condition="exists" path="%PROGRAMFILES%\GIMP\bin\gimp-2.2.exe" />
       <install cmd="%SOFTWARE%\gimp\gimp-2.2.8-i586-setup.exe  SP- /SILENT /NORESTART /DIR=%PROGRAMFILES%\GIMP" />
   </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- /SILENT /NORESTART  /DIR=%PROGRAMFILES%\GIMP" />
   </package>

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

   <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.

See also http://wpkg.org/index.php/GTK2_runtime.