[RSS]

Can NetBeans Visual Web Pack 5.5 be installed and uninstalled silently, without user interaction?

Installation: NetBeans Visual Web Pack 5.5 can be installed in silent mode without user interaction by specifying the parameters and values listed in the table below in an installer options file. The name of this file must be the same as the installer executable file name, with the file extension changed to .sp. Create the file in the same directory as the installer executable.

For example, installer files and associated options files for the NetBeans Visual Web Pack 5.5 installers would be named:

Platform Installer File Options File
Windows netbeans-visualweb-5_5-windows.exe netbeans-visualweb-5_5-windows.sp
Mac netbeans-visualweb-5_5-macosx.jar netbeans-visualweb-5_5-macosx.sp
Solaris SPARC netbeans-visualweb-5_5-solaris-sparc.bin netbeans-visualweb-5_5-solaris-sparc.sp
Solaris x86 netbeans-visualweb-5_5-solaris-x86.bin netbeans-visualweb-5_5-solaris-x86.sp
Linux netbeans-visualweb-5_5-linux.bin netbeans-visualweb-5_5-linux.sp

Note: File names change with each release of the product. The installer options file contains a line for each option. The options that can be specified are shown in the following table:

Option Example with Default Value for NetBeans Visual Web Pack 5.5 Description
installDir="D:\Program Files\netbeans-5.5" (required) The desired install directory for the product.
jdkHome="C:\java\jdk1.5.0_05" Defaults to installer's JDK selection. (MacOS? only) The home directory of the JDK that the IDE should be installed with. This is only necessary if the user wishes to override the installer's JDK selection.
Note: additional options may exist, such as debug flags for internal use only.

NetBeans Visual Web Pack 5.5 does not include a bundled application server or database, therefore it is not necessary to set port options for the silent installer. For more information on application server and database configuration, see Sun Java System Application Server Configuration and Visual Web Pack Sample Database

Once the installer options file has been created, you are ready to install NetBeans Visual Web Pack 5.5 in silent mode. Go to the directory where the installer is located. Follow the NetBeans Visual Web Pack 5.5 Installation Instructions – pausing just before starting (or double-clicking) the installer.

Then from the terminal window command line, start the installer with a command similar to the following examples for NetBeans Visual Web Pack 5.5:

  • Windows: netbeans-visualweb-5_5-windows.exe -silent -is:log C:\tmp\installLog
  • Solaris SPARC: ./netbeans-visualweb-5_5-solaris-sparc.bin -silent -is:log /opt/installLog
  • Solaris x86: ./netbeans-visualweb-5_5-solaris-x86.bin -silent -is:log /opt/installLog
  • Linux: ./netbeans-visualweb-5_5-linux.bin -silent -is:log /opt/installLog
  • Mac OS: ./netbeans-visualweb-5_5-macosx.jar -silent -is:log /Applications/installLog

Note the following:

  1. In the above examples, installLog is the install log file, not a directory.
  2. The installation directory must be completely empty, or the silent install will fail.

When the installer finishes executing, check the status in the installLog file that was specified. The installLog should show no errors (be blank) after the "ErrOut:" print out at the end of the file.

Uninstallation:

NetBeans Visual Web Pack 5.5 can also be uninstalled in silent mode. An options file is not needed. Just go to the directory NetBeans Visual Web Pack 5.5_installation_root/_uninst, and execute the uninstaller command with -silent and -is:log options. The command is similar to the following examples:

  • Windows: uninstall.exe -silent -is:log C:\tmp\installLog
  • Solaris SPARC: ./uninstall.bin -silent -is:log /opt/installLog
  • Solaris x86: ./uninstall.bin -silent -is:log /opt/installLog
  • Linux: ./uninstall.bin -silent -is:log /opt/installLog
  • Mac OS: ./uninstall.command -silent -is:log /Applications/installLog