I have created a self extracting executable using the following code:
// Create a new zip file instance
using (ZipFile zip = new ZipFile())
// Set the password, encryption type, and comment
zip.Password = password;
zip.Encryption = EncryptionAlgorithm.WinZipAes256;
// If a byte array was sent in then add it
if (fileByteArray != null)
zip.AddEntry(fileName, "", fileByteArray);
// Create the self extracting zip
zip.SaveSelfExtractor(textBoxFolder.Text + "\\" + "Self Extractor.exe", SelfExtractorFlavor.WinFormsApplication);
// Close the dialog
When I run the executable that is created I end up seeing a command prompt behind the form. I was under the impression that setting the SelfExtractorFlavor to WinFormsApplication was what controls the hiding and showing of the command prompt.
Maybe there is a bug in the application or I may not be doing something quite right.
Anyone have any ideas?