BuildDirectoryPathMap Method (db, useShortNames, sourceRootDir, targetRootDir)

DTF API

Copy image CopyHover image
Deployment Tools Foundation BuildDirectoryPathMap Method (db, useShortNames, sourceRootDir, targetRootDir)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.PackageInstallPathMapBuildDirectoryPathMap(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++ F#
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
)
static member BuildDirectoryPathMap : 
        db : Database * 
        useShortNames : bool * 
        sourceRootDir : string * 
        targetRootDir : string -> InstallPathMap 
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
InstallPathMap
An InstallPathMap with the described mapping.

Assembly: Microsoft.Deployment.WindowsInstaller.Package (Module: Microsoft.Deployment.WindowsInstaller.Package.dll) Version: 3.0.0.0 (3.11.1.2318)