Difference between revisions of "Inkscape"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(new version inkscape 0.47)
Line 24: Line 24:
 
     id="inkscape"
 
     id="inkscape"
 
     name="Inkscape"
 
     name="Inkscape"
     revision="046"
+
     revision="047"
 
     reboot="false"
 
     reboot="false"
 
     priority="10">
 
     priority="10">
 
   
 
   
     <check type="uninstall" condition="exists" path="Inkscape 0.46" />
+
     <check type="uninstall" condition="exists" path="Inkscape 0.47" />
   <install cmd='"%SOFTWARE%\graphics\Inkscape-0.46.win32.exe" /S /GTK=OFF' />
+
   <install cmd='"%SOFTWARE%\graphics\Inkscape-0.47-3.exe" /S /GTK=OFF' />
 
<!-- Upgrade fails. Uninstall first -->
 
<!-- Upgrade fails. Uninstall first -->
 
   <upgrade cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
 
   <upgrade cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
   <upgrade cmd='"%SOFTWARE%\graphics\Inkscape-0.46.win32.exe" /S /GTK=OFF' />
+
   <upgrade cmd='"%SOFTWARE%\graphics\Inkscape-0.47-3.exe" /S /GTK=OFF' />
 
   <remove cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
 
   <remove cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
 
   
 
   
Line 47: Line 47:
 
   <upgrade cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
 
   <upgrade cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
 
   <upgrade cmd='%comspec% /c rd /S /Q "%PROGRAMFILES%\Inkscape"' />
 
   <upgrade cmd='%comspec% /c rd /S /Q "%PROGRAMFILES%\Inkscape"' />
   <upgrade cmd='"%SOFTWARE%\graphics\Inkscape-0.46.win32.exe" /S /GTK=OFF' />
+
   <upgrade cmd='"%SOFTWARE%\graphics\Inkscape-0.47-3.exe" /S /GTK=OFF' />
 
</source>
 
</source>
  
  
 
[[Category:Silent Installers]]
 
[[Category:Silent Installers]]

Revision as of 15:51, 1 December 2009

the Inkscape installer accepts a number of options (extracted from installer with /? flag):

/S: silent
/D=(directory): where to install inkscape
/GTK=(OFF/ON): GTK+ Runtime environment
/SHORTCUTS=(OFF/ON): shortcuts to start inkscape
/ALLUSER=(OFF/ON): for all users on the computer
/DESKTOP=(OFF/ON): Desktop icon
/QUICKLAUNCH=(OFF/ON): quick launch icon
/SVGEDITOR=(OFF/ON): default SVG editor
/CONTEXTMENUE=(OFF/ON): context menue integration
/PREFERENCES=(OFF/ON): delete users preference files
/ADDFILES=(OFF/ON): additional files
/EXAMPLES=(OFF/ON): examples
/TUTORIALS=(OFF/ON): tutorials
/LANGUAGES=(OFF/ON): translated menues, examples, etc.
/[locale code]=(OFF/ON): e.g am, es, es_MX as in Inkscape supported

here's an example package file:

<?xml version="1.0" encoding="UTF-8"?>
 <packages>
  <package
     id="inkscape"
     name="Inkscape"
     revision="047"
     reboot="false"
     priority="10">
 
    <check type="uninstall" condition="exists" path="Inkscape 0.47" />
   <install cmd='"%SOFTWARE%\graphics\Inkscape-0.47-3.exe" /S /GTK=OFF' />
<!-- Upgrade fails. Uninstall first -->
   <upgrade cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
   <upgrade cmd='"%SOFTWARE%\graphics\Inkscape-0.47-3.exe" /S /GTK=OFF' />
   <remove cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
 
  </package>
</packages>

You can fetch the installer from sourceforge.

A strange thing... I had to add the following command to get the upgrade work ...

<!-- Upgrade fails. Uninstall first and remove inkscape's directory-->
   <upgrade cmd='"%PROGRAMFILES%\Inkscape\uninstall.exe" /S' />
   <upgrade cmd='%comspec% /c rd /S /Q "%PROGRAMFILES%\Inkscape"' />
   <upgrade cmd='"%SOFTWARE%\graphics\Inkscape-0.47-3.exe" /S /GTK=OFF' />