Changes

Netbeans

1,536 bytes added, 02:47, 13 May 2008
create netbeans package file
[http://www.netbeans.org/ Netbeans] is open-source and free IDE.

The installer switch are available in http://nbi.netbeans.org/docs/cli_options.html.


In order to do a silent installation, you'll have to:
# [http://download.netbeans.org/netbeans/6.1/final/ Download the netbeans bundle] that suits your needs
# Generate a response file by using the '''--record''' switch (we choose to download and install the JavaSE bundle here) : <source lang="dos">
netbeans-6.1-javase-windows.exe --record .\state.xml
</source>
# Copy the state.xml generated somewhere on your share
# Proceed with the silent installation by using the netbeans.xml file below:
<source lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<package id="netbeans"
name="netbeans 6.X"
revision="6101"
reboot="false"
priority="0">
<!-- 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="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"' />

</package>

</packages
</source>


[[category:Silent Installers]]
15
edits