Multiple Target Directories

If you have an application that uses completely unrelated directories, as servlets usually do, then you probably want to select the multiple target directories radio button on the Organize panel.

Multiple target directories installers let you group the files and directories that you specified on the Select Files panel into Folders. You can then assign each Folder to a Target Directory.

At install time, the user sees a panel prompting them for the name of the directory on their system that they want used for each of the Target Directories that you created. The installer then copies all the files and directories that you specified each of the target directory's folders onto the user's system.

For example, servlets are frequently configured to have all of the HTML files stored in one directory and the class files stored in another directory. You would create a target directory for the HTML files and another one for the class files and probably a third directory for all of your servlet's other files. The user would be prompted to specify 3 installation directories: one for the HTML files, one for the class files, and another one for the other files your servlet uses.

First you should define your files and directories list. Then, you can create folders that contain 1 or more of the files and directories. Each target directory must include at least one folder.

If you want to create an uninstaller for this type of an installer, then you'll need to write a custom class.

Click on the jump point or just page down to learn more about each setting on this panel.

 


 

Target directories

You'll want to add your folders before you create your target directories.

Click on the Target Directories tab and then select the Add button to create a new target directory. The description you fill in on the Target Directories dialog box will appear during the installation. It is used as the title or prompt for the field. The name is used to create a property for the user's answer. For example, if you named a target directory Classes, then you could get the directory name the user filled in from the property list by calling com.denova.ui's getPropertyList(). getProperty ( "applicationDirectoryClasses", "" ); in a custom panel.

The full list of folders is in the bottom window. Simply highlight a folder name and click the Select button to include the folder of files and directories in this target directory. You remove a folder that's in the Selected list box by highlighting the name and clicking Remove.