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

Jay Godse picture Jay Godse · Jul 16, 2013 · Viewed 64.7k times · Source

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?

Answer

florind picture florind · Sep 20, 2013

try this:

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