Aspose.ZIP for .NET 18.11 Release Notes

All Changes

KeySummaryIssue Type
ZIPNET-232Add self-extracted archivesEnhancement
ZIPNET-251Path traversal vulnerabilityBug

Public API and Backwards Incompatible Changes

The following public types were added:Description
Aspose.Zip.Saving.SelfExtractorOptionsRepresents an options for self extracted archive.
The following public methods and properties were added:Description
Aspose.Zip.License.IsLicensedGets a value indicating whether product is licensed.
Aspose.Zip.Saving.ArchiveSaveOptions.SelfExtractorOptionsGets or sets settings for self extracted archive.
Aspose.Zip.Saving.SelfExtractorOptions.CloseWindowOnExtractionGets or sets if extractor window must be closed upon extraction or not.
Aspose.Zip.Saving.SelfExtractorOptions.ExtractorTitleGets or sets the title of extractor’s window.
Aspose.Zip.Saving.SelfExtractorOptions.TitleIconGets or sets path to title icon for main windows of extractor application.
Aspose.Zip.Saving.SelfExtractorOptions.#ctor()Initialize self-extracted options.

Self-extracted archives command line options

OptionMeaningSample
-autoExtract

Primary option - without it application will be just executed as if there is no any options.

Extraction starts automatically, other options apply.

 
-autoCloseWindow closes when extraction is complete. This option only makes sense if -autoExtract option present. 
-forceOverwriteOverwrites all existing files without prompt if there are any. This option only makes sense if -autoExtract option present. 
-password:

Provides a password to encrypted entries. This option only makes sense if -autoExtract option present.

If you have spaces within the password quote it.

sfx.exe -autoExtract -password:T0p$ecret
-destination:

Extracts files to supplied directory. This option only makes sense if -autoExtract option present.

If you have spaces within the path quote it.

sfx.exe -autoExtract -destination:“C:\My Documents”