Eclipse

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Eclipse is an open-source and free IDE.

In order to do a silent installation, you'll have to:

  1. Download the Eclipse bundle that suits your needs (we are installing the PDT bundle here)
  2. Proceed with the silent installation by using the eclipse.xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<packages>
  <package id="eclipse-pdt"
           name="eclipse-pdt"
           revision="10202"
           reboot="false"
           priority="0">
    <!-- see http://wpkg.org/7-Zip -->
    <depends package-id="7zip"/>
    <!-- This software requires a JDK in order to run. Please, see http://wpkg.org/Java on how to install one -->
    <depends package-id="jdk"/>
    <check type="file" condition="exists" path="%PROGRAMFILES%\eclipse\eclipse.exe" />

    <install cmd='%COMSPEC% /c "start "title" /wait "%PROGRAMFILES%\7-Zip\7z.exe" x -o"%PROGRAMFILES%" "%SOFTWARE%\eclipse\pdt-all-in-one-R20080103-win32.zip""' />

    <upgrade cmd='%COMSPEC% /c "start "title" /wait "%PROGRAMFILES%\7-Zip\7z.exe" x -o"%PROGRAMFILES%" "%SOFTWARE%\eclipse\pdt-all-in-one-R20080103-win32.zip""' />

    <remove cmd='%COMSPEC% /c taskkill /F /IM eclipse.Exe'/>
    <remove cmd='%COMSPEC% /c rd /Q /S "%PROGRAMFILES%\eclipse"' />
  </package>
</packages>

Silent install of Zend Studio for Eclipse (non-free) is possible too :

<?xml version="1.0" encoding="UTF-8"?>

<packages>

<package
        id="zend"
        name="Zend Studio For Eclipse"
        revision="6010"
        reboot="false"
        priority="1">
        <check type="uninstall" condition="exists" path="Zend Studio for Eclipse - 6.0.1" />
        <install cmd="%SOFTWARE%\zend\ZendStudioForEclipse-6_0_1.exe -i silent" />
        <upgrade cmd="%SOFTWARE%\zend\ZendStudioForEclipse-6_0_1.exe -i silent" />
        <!-- <remove cmd="%PROGRAMFILES%\Zend\Zend Studio for Eclipse - 6.0.1\Uninstall Zend Studio for Eclipse - 6.0.1.exe -i silent" /> -->
</package>

</packages>