I am trying to create a self extracting exe. Creating it is no problem. Where I am facing problems is
- Setting the extraction path where the exe exists
- Running the extracted exe.
For the second part, it is most probable that I must have the extraction path correct. I am using the following modified code from DotNetZipLibrary
zip.AddDirectory(DirectoryPath, "putty.exe");
zip.Comment = "This will be embedded into a self-extracting console-based exe";
SelfExtractorSaveOptions options = new SelfExtractorSaveOptions();
options.Flavor = SelfExtractorFlavor.ConsoleApplication;
options.DefaultExtractDirectory = "";
options.PostExtractCommandLine = "..\\putty.exe";
options.RemoveUnpackedFilesAfterExecute = true;
zip.SaveSelfExtractor("archive.exe", options);