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

Netbeans is open-source and free IDE.

The installer switch are available in

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

  1. Download the netbeans bundle that suits your needs
  2. Generate a response file by using the --record switch (we choose to download and install the JavaSE bundle here) :
    netbeans-6.1-javase-windows.exe --record .\state.xml
  3. Copy the state.xml generated somewhere on your share
  4. Proceed with the silent installation by using the netbeans.xml file below:
<?xml version="1.0" encoding="UTF-8"?>
  <package id="netbeans"
           name="netbeans 6.X"
    <!-- This software requires a JDK in order to run. Please, see on how to install one -->
    <depends package-id="jdk"/>
    <check type="uninstall" condition="exists" path="NetBeans IDE 6.1" />

    <install cmd='%COMSPEC% /c "start /wait %SOFTWARE%\netbeans\netbeans-6.1-javase-windows.exe --silent --state %SOFTWARE%\netbeans\state.xml"' />

    <upgrade cmd='%COMSPEC% /c "start /wait %SOFTWARE%\netbeans\netbeans-6.1-javase-windows.exe --silent --state %SOFTWARE%\netbeans\state.xml"' />

    <remove cmd='%COMSPEC% /c "start /wait /D "%PROGRAMFILES%\NetBeans 6.1" uninstall.exe --silent"' />