Custom Options

You can enhance your installers, updaters, and uninstallers by simply writing a Wizard Panel which prompts users for data, configures files, or runs third party programs. Learn more about how easy it is to write a custom class using Java.

Once you have written your custom class, or adapted one of the Samples, you simply add the classname, including the package, to the Custom panel where you'd like it to execute in the standard wizard.

After you click the program's subtab (e.g., Installer, Updater, or Uninstaller) enter the location of your custom classes. This directory should only include files that you want included with your custom class. For example, if your custom class uses private classes or needs additional configuration files, these files should also be in the directory that you entered. The specified directory must contain the correct directory tree for the classes packages.

Next, decide when you want your custom class to operate. Click the appropriate button and select classes by clicking the plus sign. Remember that the classes you select must be an extension to the Wizard Panel. If you have classes that are not an extension of WizardPanel, do not select or enter them into the Custom panels. Instead, simply include additional classes that your WizardPanel classes use in the custom classes location.

If you want multiple custom classes to appear in succession, then select all the classes and then use the Up and Down arrows to organize them.

Learn more about when you can include your custom classes:

Installer       Updater       Uninstaller



 

Customizing the Installer

Only add custom classes that extend the Wizard Panel for the installer.

When to Launch Your Installer Custom Classes
Before install Before the standard JExpress installer methods are invoked.
After welcome After the installer's Welcome screen appears.
After license After the user agrees to your license.
After ReadMe After the user sees your ReadMe file.
After multiple install types After the wizard prompts a user to select which install type to use. Only applicable if you selected Multiple install types on the Organize panel.
After selecting install dir After the user selects the installation directory and before any files are installed.
After files installed After the files are installed and before any launchers or the uninstaller are added.

The first custom class that you include here should disable the Back button because the earlier installation panels are no longer accessible.

After launchers added After the launchers, if there are any, are added to the user's system and before the uninstallers are added.

The first custom class that you include here should disable the Back button because the earlier installation panels are no longer accessible.

After uninstaller created After creation of the uninstaller and before the Final panel displays.

If you want to add custom commands to the uninstaller (e.g., deleting special files), then your custom classes that change the uninstaller must be included at this point and no earlier.

 

Customizing the Updater

Only add custom classes that extend the Wizard Panel for the updater.

When to Launch Your Updater Custom Classes
Before update Before the standard JExpress updater methods are invoked.
After lists of updated files Classname(s) of any custom commands to be executed after the Updater gets the list of update files.
After files compared Classname(s) of any custom commands to be executed after Updater determines which files need to be updated.
After files downloaded Classname(s) of any custom commands to be executed after files are updated in the temporary update directory.
After program updated Classname(s) of any custom commands to be executed after the updated files are copied to the programDir. The class(es) in this field are executed before the "Final" panel appears if this is an "On-demand" update or before the Java program is launched if the Updater starts before a Java app.

 

Customizing the Uninstaller

Only add custom classes that extend the Wizard Panel for the uninstaller. If you want to delete additional files or run a 3rd party uninstaller, then read more.

When to Launch Your Uninstaller Custom Classes
Before files uninstalled Before the files and launchers are uninstalled.