RemoveUnpackedFilesAfterExecute Property

DotNetZip

Ionic Zip Library v1.9.1.6 RemoveUnpackedFilesAfterExecute Property
ReferenceIonic.ZipSelfExtractorSaveOptionsRemoveUnpackedFilesAfterExecute
Whether to remove the files that have been unpacked, after executing the PostExtractCommandLine.
Declaration Syntax
C# Visual Basic Visual C++
public bool RemoveUnpackedFilesAfterExecute { get; set; }
Public Property RemoveUnpackedFilesAfterExecute As Boolean
	Get
	Set
public:
property bool RemoveUnpackedFilesAfterExecute {
	bool get ();
	void set (bool value);
}
Remarks

If true, and if there is a PostExtractCommandLine, and if the command runs successfully, then the files that the SFX unpacked will be removed, afterwards. If the command does not complete successfully (non-zero return code), that is interpreted as a failure, and the extracted files will not be removed.

Setting this flag, and setting Flavor to SelfExtractorFlavor.ConsoleApplication, and setting Quiet to true, results in an SFX that extracts itself, runs a file that was extracted, then deletes all the files that were extracted, with no intervention by the user. You may also want to specify the default extract location, with DefaultExtractDirectory.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)