AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Winzip file extractor9/25/2023 "quiet" mode, which means when it runs, it offers either no UI at all if you are using a console app, or only a simple progress bar if using the WinForms flavor.a default extract directory, which can be based on the user's environment, eg %USERPROFILE%.the Win32 icon to use for the SFX EXE, or just accept the default.optionally remove all files after the 'execute on unpack' command completes successfully.a command to execute after unpack (the command can be part of what was unpacked).whether to open Explorer after unpacking.There are a bunch of options when producing the SFX, like: The console flavor is more suited to being used in a script, or in a headless (no UI) scenario. It's simple and utilitarian, and looks like this: The WinForms UI is generated for you - nothing to write or design. In DotNetZip, there are two possible flavors of SFX that you can generate: a console app or a WinForms app. restoration of File attributes, timestamps, etc.Unicode, for filenames outside of the normal ~ASCII range.WinZip AES encryption - so you can encrypt the thing and only allow unpacking for someone who knows the password.The SFX composes with the other zip features, including The SFX/EXE is also a regular Zip file that you can read and extract with WinZip, or other zip tools, including Windows Explorer "Compressed Folders". NET Framework 2.0 or later in order to run, but nothing else. (You cannot extract to 7 different directories scattered about the filesystem) The only rule is, upon extracting, the extraction happens to a particular root or parent folder. You choose how to shape the folder hierarchy in the ZIP file. Zip1.SaveSelfExtractor("archive.exe", SelfExtractorFlavor.WinFormsApplication) Zip1.AddEntry("Readme.txt", "This is content for a 'Readme' file that will appear in the zip.") Zip1.Comment = "This will be embedded into a self-extracting exe" Zip1.AddDirectory("C:\\project1\\datafiles", "data") In C#, the code to produce an SFX archive with DotNetZip looks like this: using (ZipFile zip1 = new ZipFile()) One thing it allows you to do is produce a self-extracting archive (SFX). DotNetZip is a library that allows managed code apps to read or write zip files.
0 Comments
Read More
Leave a Reply. |