Install NetBeans And Profiler Silently

Posted by Jiri Sedlacek on Oct 18 2006, 02:20:00 PM CEST

In 6.0 devbuilds/milestones of NetBeans and Profiler there's a support for a silent installation. This means that you can set install options in a config file and launch the installer without UI and any interaction, working just with the config file.

Here's a simple howto for Windows. First you need to download the installer, let's call it installer.exe for reference. Then invoke following command from command line: installer.exe -options-template installscript.txt. This will create a template for the config file. Edit it to meet your needs and then just invoke the installer again: installer.exe -silent -options installscript.txt. The installation now runs!

Tip: on Windows the automatic installation is asynchronous, invoking installer.exe returns immediately and the installation runs in the background. To start it in a blocking way, use start /w installer.exe <arguments...>.

Here are sample scripts for silent NetBeans and Profiler installation:

ide_install_opts.txt:

    -W license.selection=1
    -P installLocation="C:\Program Files\NetBeans"
    -W jdkselect.jdkHome="C:\Program Files\Java\jdk1.5.0"

profiler_install_opts.txt:

    -W license.selection=1
    -W beanNbSelectionPanel.nbHome="C:\Program Files\NetBeans"

Category: Tips & Tricks | Permalink | Comments [0]

Trackback URL: http://blogs.sun.com/nbprofiler/entry/install_netbeans_and_profiler_silently
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed