How do I silently install a 7-zip self-extracting archive to a specific directory?

Tag: command-line , 7zip , self-extracting Author: shilubing Date: 2013-06-30

The Ruby Devkit is a 7-zip based self-extracting archive.

I would like to invoke it silently without having to install 7-Zip to extract the files to a folder of my choosing, so that I can script the installation. I imagine it to be something like:

cmd> DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe /silent /dir="C:\DevKit"

But that, of course, doesn't work. What command line flags must I use to silently extract this archive into a folder of my choice?

Other Answer1

try this:

C:\> DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe -o"C:\DevKit" -y