WebStart Wizard SDK Tutorial for Solaris Users


CONTENTS

  1. Introduction: Webstart Install Wizards on Solaris

  2. How should I package my product?

  3. What code do I need to write?

  4. Solaris Step-By-Step Example: SolarisBuilder.java


1. Introduction: Webstart Install Wizards on Solaris

It is easy to create a Webstart Install Wizard for installing products on Solaris. Many products targeted for Solaris are complex and involve installation, configuration, and testing. Through the use of a Webstart Wizard, you can be sure that your product will get installed correctly and easily, without any confusion.

Webstart Wizards make Solaris-specific installers through the support of Solaris SVR4 Packages and Solaris Patches. You can create a product tree of packages and patches, and have the Wizard install using this tree as a description of what to install. Your tree can be built to be architecture-independent, so that it works on all Solaris implementations, regardless of the architecture of the underlying machine.

2. How should I package my product?

If your product already has an installation mechanism for Solaris (such as SVR4 Packages), creating a builder to install your product will be almost trivial. For new products that you are creating an installer for, any combination of Solaris SVR4 packages & patches and bare files can be installed using Webstart Wizards. However, Solaris SVR4 packages & patches are the only official way of distributing software on the Solaris platform. You should use Packages and Patches so that Solaris can recognize and register your product's files with the system.

Each type of collection is explained in further detail below. You can even write support for your own custom type of files using the Wizard API (see the InstallLeaf API). You can also find examples of each type of collection in the example provided. See SolarisBuilder.java for the source code to this sample.

3. What Code Do I Need To Write?

For simple install wizards, the only thing you need to write is the builder code. This is where you will specify the files that comprise your product. You can also customize various aspects of the install, such as the "About..." message contents, the exit warning, etc. The rest of the install is written for you in the InstallArchiveWriter class. A basic set of panels are provided for your wizard. The panel sequence is as follows:

For more complex installs, you would need to build your product tree yourself, as well as configure the wizard panel tree. This is what we will be doing in the SolarisBuilder below. The basic steps to creating a wizard are:

4. Solaris Step-By-Step Example: SolarisBuilder.java

The following example builds a fictional product that consists of two patches, and two packages. The patches are required before the product will be installed, and the Java Source Demos will only be installed if the user has the Sun JDK version 1.1 on the system.

This concludes this Solaris Tutorial. For more information on creating wizards for Solaris, please visit our website at www.sun.com/solaris/webstart/wizards/.