How do I silently install a 7-zip self-extracting archive to a specific directory?
问题 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? 回答1: try this: C:\> DevKit-tdm-32-4.5.2