UpdateFiles Method (fileKeys)

Microsoft Deployment Tools

Deployment Tools Foundation UpdateFiles Method (fileKeys)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstaller.PackageInstallPackageUpdateFiles(ICollection<(Of <(String>)>))
Updates the install package with new files from the WorkingDirectory. The files must be in the relative directory matching their SourcePath. This method re-compresses and packages the files if necessary, and also updates the following data: File.FileSize, File.Version, File.Language, MsiFileHash.HashPart?.
Declaration Syntax
C# Visual Basic Visual C++
public void UpdateFiles(
	ICollection<string> fileKeys
)
Public Sub UpdateFiles ( _
	fileKeys As ICollection(Of String) _
)
public:
void UpdateFiles(
	ICollection<String^>^ fileKeys
)
Parameters
fileKeys (ICollection<(Of <(String>)>))
List of file key strings to update
Remarks
This method does not change the media structure of the package, so it may require extracting and re-compressing a large cabinet just to update one file.

The cabinet compression level used during re-cabbing can be configured with the CompressionLevel property.

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