7-zip self-extracting archive destination folder

Tag: c# , sfx Author: xpipi288 Date: 2014-04-23

I am writing a C# program that call a self-extracting archive made using 7-zip. When the sfx file is called in

System.Diagnostics.Process.Start(sfx_exe);

The prompt for the directory to extract it appears. I would like to feed the directory right into the command so that the file will not require user input to extract.

I've read about using other installers but would ideally like to just pass a command into the execution of the sfx file.

Other Answer1

This is MOST likely a result of how the sfx file was made. I would recommend re-creating the self extracting SFX so that it doesn't prompt. Try using winrar, the user interface for creating self extracting files is comprehensive and and SFX can be created w/o a prompt http://www.rarlab.com/download.htm

Here is a guide on how to use the self extracting .exe feature:

How do I make a self-installing executable using WinRAR?