Creating and Configuring the Server Software Package Component

  1. Right-click the software package object that you just created and select New Component.

  2. Enter a name for the component, such as Delete Directories.

  3. If necessary, click the plus sign to expand the Server Software Package object.

  4. Right-click the component and select Properties.

  5. Click the Copy File tab.

  6. Click the drop-down list button next to the Add button and select Add File Group.

  7. Click Add.

  8. Enter a name for the file group, such as Delete Working Directories.

  9. In the Group Target Path field, enter the name of the variable that you created containing the location of the directories to be deleted, and add any path information that is not contained in the variable; however, do not enter the name of the directory to be deleted as part of that path.

    For example, if the location for the directories to be deleted is the same for all target servers, enter the actual volume (NetWare) or drive (Windows) with the path information (which can also contain variables).

    However, if you need to use variables because the server operating systems are different, then enter the variable name (within the % symbols) plus the full path (which can also contain variables) to the directory just above the directories to be deleted. For example, %DELETEDDIRROOT% (variable name) and %TARGET%\PDS\TED\DIST (full path to the parent directory of the directories you want to delete).

    IMPORTANT:  When using variables, the path you enter must be the directory containing the directory to be deleted. In Step 11 you will add the actual directory names to be deleted.

  10. Click OK to exit the dialog box.

  11. Click the drop-down list button again and select Add Directory.

    Make sure you first select the tree item under which you want to add this directory.

  12. Click Add.

  13. To change the name ("Directory") that defaults in the tree structure to the actual directory name that you want deleted (such as OldDist.TED.ZfS3.Novell), edit the directory name and press the Enter key to save the change.

    If you do not press the Enter key, "Directory" will be displayed again. The Rename button allows you to edit the directory name.

  14. Click the drop-down list button next to the Copy Mode combo box and select Delete.

  15. Click Apply.

  16. Repeat Step 10 through Step 15 for each directory you want this software package to delete using this component's file group.

    You can start at Step 6 to add other file groups, or from Step 1 to add a new component. You might want to repeat from these steps if you cannot add all of your directories to be deleted under the file group that you created in Step 6.

  17. When finished configuring the software package component, click OK or Close.

Using the examples from the above steps, you would have entered:

%DELETEDDIRROOT%

and

%TARGET%\PDS\TED\DIST

and

OldDist.ZfS3.TED.Novell

in order to delete the directories having these paths:

DATA:\ZENWORKS\PDS\TED\DIST\OldDist.TED.ZfS3.Novell 
D:\ZFS3\ZENWORKS\PDS\TED\DIST\OldDist.TED.ZfS3.Novell