ZipArchiverBuildSfx(String, String, CompressionMethod, CompressionLevel, String, Boolean, ExtractExistingFileAction, Boolean, String, String, SelfExtractorFlavor, String) Method
Compresses the specified source file or diretory into a self-extracting archive (SFX),
using the specified compression and SFX parameters.
Namespace: DevCase.ThirdParty.DotNetZipAssembly: DevCase.net48.ThirdParty.DotNetZip (in DevCase.net48.ThirdParty.DotNetZip.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public string BuildSfx(
string sourceFileOrDir,
string outputFilepath,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel,
string extractionDirectory,
bool silentExtraction,
ExtractExistingFileAction overwriteFiles,
bool deleteExtractedFilesAfterExtraction,
string icon,
string windowTitle,
SelfExtractorFlavor windowStyle,
string commandLineArgument
)
Public Function BuildSfx (
sourceFileOrDir As String,
outputFilepath As String,
compressionMethod As CompressionMethod,
compressionLevel As CompressionLevel,
extractionDirectory As String,
silentExtraction As Boolean,
overwriteFiles As ExtractExistingFileAction,
deleteExtractedFilesAfterExtraction As Boolean,
icon As String,
windowTitle As String,
windowStyle As SelfExtractorFlavor,
commandLineArgument As String
) As String
Dim instance As ZipArchiver
Dim sourceFileOrDir As String
Dim outputFilepath As String
Dim compressionMethod As CompressionMethod
Dim compressionLevel As CompressionLevel
Dim extractionDirectory As String
Dim silentExtraction As Boolean
Dim overwriteFiles As ExtractExistingFileAction
Dim deleteExtractedFilesAfterExtraction As Boolean
Dim icon As String
Dim windowTitle As String
Dim windowStyle As SelfExtractorFlavor
Dim commandLineArgument As String
Dim returnValue As String
returnValue = instance.BuildSfx(sourceFileOrDir,
outputFilepath, compressionMethod,
compressionLevel, extractionDirectory,
silentExtraction, overwriteFiles,
deleteExtractedFilesAfterExtraction,
icon, windowTitle, windowStyle, commandLineArgument)
public:
String^ BuildSfx(
String^ sourceFileOrDir,
String^ outputFilepath,
CompressionMethod compressionMethod,
CompressionLevel compressionLevel,
String^ extractionDirectory,
bool silentExtraction,
ExtractExistingFileAction overwriteFiles,
bool deleteExtractedFilesAfterExtraction,
String^ icon,
String^ windowTitle,
SelfExtractorFlavor windowStyle,
String^ commandLineArgument
)
member BuildSfx :
sourceFileOrDir : string *
outputFilepath : string *
compressionMethod : CompressionMethod *
compressionLevel : CompressionLevel *
extractionDirectory : string *
silentExtraction : bool *
overwriteFiles : ExtractExistingFileAction *
deleteExtractedFilesAfterExtraction : bool *
icon : string *
windowTitle : string *
windowStyle : SelfExtractorFlavor *
commandLineArgument : string -> string
No code example is currently available or this language may not be supported.
- sourceFileOrDir String
-
The source file or diretory.
- outputFilepath String
-
The path of the output SFX file to create.
- compressionMethod CompressionMethod
-
The compression method.
- compressionLevel CompressionLevel
-
The compression level.
- extractionDirectory String
-
The directory where to extract the SFX contents.
Default value is ".\" (the working directory path)
- silentExtraction Boolean
-
A value indicating whether to perform a silent extraction.
- overwriteFiles ExtractExistingFileAction
-
A value indicating whether to overwrite any existing file during the extraction.
- deleteExtractedFilesAfterExtraction Boolean
-
A value indicating whether to delete the extracted files.
- icon String
-
The icon for the SFX executable.
- windowTitle String
-
The window title for the SFX executable.
- windowStyle SelfExtractorFlavor
-
The window style of the SFX executable.
- commandLineArgument String
-
The command-line arguments that will be passed to the SFX executable when ran.
String
The full path of the resulting SFX file.
FileNotFoundException
|
Source file or directory not found.
|