DestinationDirs (Compact 2013)

3/26/2014

The [DestinationDirs] section is required and describes the names and paths of the destination directories for your application on the target device.

Syntax

[DestinationDirs]
file_list_section = 0,subdir
[file_list_section = 0,subdir]
[DefaultDestDir=0,subdir]
[shortcut_list_section=0,subdir]

Parameters

  • file_list_section
    Section name used in "[DefaultInstall] CopyFiles". For more information, see DefaultInstall.

    Note

    If a value for DefaultDestDir is not specified, you must also list in this section the file_list_sections that the CopyFiles key specifies in the [DefaultInstall] section. Conversely, if a value for DefaultDestDir is specified, and you do not specify the destination directory for any file_list_sections, the destination directory for that section will be set to the value specified by DefaultDestDir.

  • subdir
    Destination directory, which uses the format of an absolute device path, a directory macro, or the install directory %InstallDir%.
  • shortcut_list_section
    Optional directory that you can use to specify where the shortcut file is located after it is created. For more information, see CEShortcuts.

    Note

    If a value for DefaultDestDir is not specified, you must also list in this section the shortcut_list_sections that the CopyFiles key specifies in the [DefaultInstall] section. Conversely, if a value for DefaultDestDir is specified, and you do not specify the destination directory for any shortcut_list_sections, the destination directory for that shortcut will be set to the value specified by DefaultDestDir.

Remarks

Do not use unsupported characters in your directory path, such as /, *, ?, <, >, and |. The CAB Wizard will replace these characters with spaces, which may cause the configuration service provider (CSP) to terminate with errors. If you are using environment variables in your path, make sure that their value strings do not contain these characters.

The following [DestinationDirs] code example uses the string %CE2%, which corresponds to the Windows directory, and the string %CE1%, which corresponds to the Program Files directory:

[DestinationDirs]
Files.Common   = 0,%CE1%\My Subdir
Files.Shared   = 0,%CE2%

See Also

Reference

Information (.inf) File Overview
CAB Wizard