Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract a self extracting exe from commandline

Is there a way to extract a self extracting exe from commandline in windows?

I have a self extracting exe which is of type RAR. I want to extract the contents of this RAR only with the help of windows and not using any other tools (like 7zip, Unrar etc) which helps to extract. Also, I want to do it from the command line only.

Are there any utilities in windows which I can use to extract the self extracting exe file from commandline?

like image 409
prakashjv Avatar asked Feb 08 '12 13:02

prakashjv


2 Answers

You might be able to get the self-extacting RAR archive to do what you want with one or more of the following RAR SFX (self-extracting archive) options:

GUI self-extracting modules support following command line switches:

  -d<path>     set the destination path
  -p<pwd>      specify a password
  -s           silent mode, hide all
  -s1          same as -s
  -s2          silent mode, hide start dialog
  -sp<par>     specify parameters for setup program

I'm not sure if any of these options will suppress running a setup program that the SFX is configured to run.

like image 148
Michael Burr Avatar answered Oct 19 '22 16:10

Michael Burr


Download UnRar for windows (freeware) from this link. It in itself is a self extracting archive, which when installed will give you the actual unrar.exe. You can then use unrar.exe to extract files from the command line.

like image 24
Kaptnik Avatar answered Oct 19 '22 16:10

Kaptnik