|
![]() |
| The "DirectoryTree" Command |
This command takes a directory specification in a fairly user friendly
format and defines and possibly creates this
directory
entry in the MSI "Directory" table
.
The macro takes these parameters:
Note that the directory key must be specified in the "CreateFolder" table
table otherwise you should get validation errors and it won't work. You can use the "MAKE" parameter to add the info to the table.
If you find that varying one directory effects another's location then you should read the "Altering one Directory also effects Others" section.
| EXAMPLES - Create Empty Folder |
Note that in the following example an empty folder is not removed on uninstallation, use the "REMOVE" parameter if this is required:
<$Component "CreateEmptyFolder" Create="Y" Directory_="EMPTYDIR">
<$DirectoryTree Key="EMPTYDIR" Dir="c:\EmptyDirectory" MAKE="Y">
<$/Component>
| EXAMPLES - Other |
<$DirectoryTree Key="INSTALLDIR1" DIR="C:\A\B\C\D\E\F\G\InstallationDirectory"> ;;C: forced! (BY DEFAULT) - can be overriden from install command line though... <$DirectoryTree Key="INSTALLDIR2" DIR="[ProgramFilesFolder]\x\y\z\InstDir2"> ;;Tree starts at "ProgramFilesFolder" <$DirectoryTree Key="INSTALLDIR3" DIR="C:\Program Files\InstDir3"> ;;Because of preconfigured mapping will convert to use "ProgramFilesFolder"! <$DirectoryTree Key="INSTALLDIR4" DIR="C:\Program Files\AN83NAME.1|ALongDirectoryNameForWhichIHaveSuppliedASpecific_8.3_Name"> ;;Specify a specific 8.3 name
![]() | ![]() |