SourceDirectory Property

Directory to be compressed into a self-extracting archive.


public string SourceDirectory { get; set; }
Public Property SourceDirectory As String

Default Value



This property specifies the name of the directory containing the files to be compressed. This may be a local or absolute path. If the RecurseSubdirectories property is true, all the subdirectories under SourceDirectory will be recursed into, and those files will also be compressed.

Example (Creating a Self-Extracting Archive)

component.ArchiveFile = "c:\test.exe"
component.RecurseSubdirectories = true
component.SourceDirectory = "c:\foo\"
component.CaptionText = "Testing ZipSFX"
component.BannerText = "Press continue to decompress the archive."

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks ZIP 2020 .NET Edition - Version 20.0 [Build 7720]