SourceFile Property
File to be compressed into a self-decrypting archive.
Syntax
[VB.NET] Public Property SourceFile As String
[C#] public string SourceFile {get; set;}
Remarks
This property specifies the name of a single file to be compressed. When both SourceFile and SourceDirectory are set, only SourceDirectory is used.
Example (Creating a Self-Decrypting Archive)
component.ArchiveFile =
"c:\test.exe"
component.RecurseSubdirectories =
true
component.SourceDirectory =
"c:\foo\"
component.CaptionText =
"Testing SDA"
component.BannerText =
"Press continue to decompress the archive."
component.CreateSDA()
component.ArchiveFile =
"c:\test.exe"
component.SourceFile =
"c:\foo\bar.dat"
component.CaptionText =
"Testing SDA"
component.BannerText =
"Press continue to decompress the archive."
component.CreateSDA()
Default Value
""