Pack Method (sourceDirectory)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Pack Method (sourceDirectory)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.CompressionArchiveInfoPack(String)
Compresses all files in a directory into the archive. Does not include subdirectories.
Declaration Syntax
C# Visual Basic Visual C++
public void Pack(
	string sourceDirectory
)
Public Sub Pack ( 
	sourceDirectory As String
)
public:
void Pack(
	String^ sourceDirectory
)
Parameters
sourceDirectory (String)
The directory containing the files to be included.
Remarks
Uses maximum compression level.

Assembly: Microsoft.Deployment.Compression (Module: Microsoft.Deployment.Compression.dll) Version: 3.0.0.0 (3.9.1006.0)