I created a self-extracting zip using DotNetZip with the following options:
var opts = new SelfExtractorSaveOptions();
opts.RemoveUnpackedFilesAfterExecute = true;
opts.PostExtractCommandLine = "TestApp.exe";
opts.Flavor = SelfExtractorFlavor.ConsoleApplication;
zip1.SaveSelfExtractor("TestAppSFX.exe", opts);
Is it possible to pass command line arguments to my self-extracting zip that will then be passed to the console application that gets invoked after extracting?
I.e., I want to be able to type something like the following:
TestAppSFX.exe -flag
Then, my console application TestApp.exe
would receive -flag
as an argument.
These arguments will vary depending on usage, so specifying them when I create the SFX is not an option.