Adding Nested Setup Files Into a Setup Distribution Unit
When you are working with applications made up of several components (such as Microsoft® ActiveX® controls), you can:
-
Create separate setup distribution units for each component.
-
Create separate setup distribution units to install each component and then nest these setup distribution units together.
When a nested setup is deployed or downloaded on the target computer, the innermost setup distribution unit runs first, and then the overall setup distribution unit. This strategy is appropriate when the components are used by several applications, or when the components are provided by a third party as a setup distribution unit, and you are not sure what is involved with that installation.
To add a nested setup to a setup distribution unit
-
In the Project Explorer, select the setup distribution unit in which you want to place the nested setup file.
-
On the Project menu, click Add Item.
-
In the Add Item dialog box, click Browse and find the setup (.exe) file. Select this file and click Open.
-
In the Project Properties dialog box, click the Nested Setups tab.
-
Select the check box next to the nested setup file that you have just added to the project.
-
Click OK.
Generate the setup files and add them to the project containing the in-place setup distribution unit. You can add files to the project by right-clicking the project, selecting Property Pages, and then clicking the Output Format tab. Click Include Additional Files.
To add a nested setup file to a setup in-place packaging configuration in a Visual J++ project
-
In the Project Explorer, select the project containing the in-place setup, right-click, and then click Properties.
-
In the Project Properties dialog box, click the Output Format tab.
-
In the Output Format tab, confirm that the Enable Packaging check box is selected and the Self-extracting Setup (.EXE) option is chosen for the packaging type.
-
Click Include Additional Files.
-
In the Add Additional Files dialog box, click Add.
-
In the Browse for Package Output File dialog box, find the setup (.exe) file. Select this file and click Open.
-
In the Add Additional Files dialog box, click OK.
-
Click Advanced to get to the property pages for that setup distribution unit.
-
Click the Nested Setups tab.
-
Select the check box next to the setup file that you have just added to the project.
-
Click OK.