SourceFile Property
File to be compressed into a self-decrypting archive.
Syntax
property SourceFile: String;
Default Value
''
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()
Data Type
String