Install NetBeans And Profiler Silently

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"

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

A blog by NetBeans Profiler & VisualVM developers.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today