Using packages in your Setup Factory project involves three simple steps:
1. Create the packages.
2. Assign files to the packages.
3. Add screens to your project so users can select the packages.
For example, let's say you include a set of tutorials with your application in the form of very large video files. Because these files are so large, you want your users to be able to choose whether or not to install them at run time. Here's how you could accomplish this by using packages:
First, you would use the Packages dialog to create a package for the video files. You would give the package an appropriate name like "Video Tutorial Files" and change the default variable name to something unique and easy to remember; a good name for this package's variable would be something like %Package_VideoTutorialFiles%.
You could also write a brief description to help your users decide whether they want to install the tutorial files, e.g. "Optional tutorial files in AVI video format. Windows MediaPlayer 6 or above is required in order to view these files."
Next, you would assign the video files to the package. To do this, you would select all the video files on the project window, press the File Properties button to access the Multiple File Properties dialog, and use the Packages tab to assign the files to the "Video Tutorial Files" package. Once this is done, the video files will only be installed if the value in %Package_VideoTutorialFiles% is set to "true".
Finally, you would use the Screens dialog to add a Select Packages screen to your project. The Select Packages screen is able to display any number of packages in a list, with check boxes that the user can use to turn the individual packages on or off. In order for the "Video Tutorial Files" package to appear on this screen, you need to add it to the list of packages that the screen will display. To do this, you would access the Custom tab of the Screen Properties dialog for the Select Packages screen, and add the "Video Tutorial Files" package to the list of available packages.
NOTE |
|
|
|
|
By default, the Select Packages screen will only be displayed if the "Custom" option is chosen on a preceding Select Install Type screen at run time. If you aren't using a Select Install Type screen, you will need to modify the screen condition for the Select Packages screen to remove this restriction. To do so, simply edit the expression in the Condition field on the Settings tab of the Screen Properties dialog for the Select Packages screen. |
See Also: Packages, Packages dialog