Deployment Tools Foundation
BuildDirectoryPathMap Method (db, useShortNames, sourceRootDir, targetRootDir)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller.Package ► InstallPathMap ► BuildDirectoryPathMap(Database, Boolean, String, String)
Builds a mapping of Directory keys to directory paths, specifying root directories
for the source and target paths.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static InstallPathMap BuildDirectoryPathMap( Database db, bool useShortNames, string sourceRootDir, string targetRootDir )
Public Shared Function BuildDirectoryPathMap ( _ db As Database, _ useShortNames As Boolean, _ sourceRootDir As String, _ targetRootDir As String _ ) As InstallPathMap
public: static InstallPathMap^ BuildDirectoryPathMap( Database^ db, bool useShortNames, String^ sourceRootDir, String^ targetRootDir )
Parameters
- db (Database)
- Database containing the Directory table.
- useShortNames (Boolean)
- true to use short directory names; false to use long names
- sourceRootDir (String)
- The root directory path of all source paths, or null to leave them relative.
- targetRootDir (String)
- The root directory path of all source paths, or null to leave them relative.
Return Value
An InstallPathMap with the described mapping.