Command line

Key

Description

-!

Terminates Parsing Command line. All Keys Listed After It Can Be Transferred (As Is) Only In The First Executed Program ('RunProgram', 'ExecuteFile', 'AutoInstall' Or 'AutoInstallX'). It May Be Necessary If You Want To Specify The KeyThat Is Used In The SFX Module And Performed Programme.Naprimer.
In The Configuration File RunProgram="setup.exe -s", And Must Comply With "setup.exe -s -y" (Key '-y' Is Used By Module). To Send It To The 'RunProgram' Need To Perform "sfx.exe -gm2 -! -y". Key '-y' Will Be Ignored By a Module Referred To The Command Prompt And Execute "setup.exe -s -y". At The Same Time, The Module Will Treat The Key '-gm2' And Make "quiet" Unpacking.

-ai

Unattended.

Use The Option 'AutoInstall' Instead Of 'RunProgram', 'ExecuteFile' Or 'AutoInstallX' From The Configuration File. If 'AutoInstall' Is Not Specified - This Key Is Ignored.

Key Automatically Suppresses Dialog 'BeginPrompt', I.e. You Can Not Specify The Key '-y'.

-aiX

Automatic Installation Of a (Literal) Option. As The Letters X Allowed [0...9], [A...Z], [a...z]. For Options To Be Caused By The Corresponding Row In The Configuration File (Parameter 'AutoInstallX'), I.e., If You Specify '-ai7', Something In The Configuration File Must Be Present Line Of The Form AutoInstall7="auto_install.exe Parameters For Scenario 7", Otherwise It Will Display an Error Message.

Batch Mode Automatic Installations As Possible. After '-ai' Letters Indicate Automatic Installations For Example If You Execute "sfx.exe -ai3R2", It Will Be Implemented Consistently 'AutoInstall3', Then 'AutoInstallR', And Then 'AutoInstall2'. If Some Of The 'AutoInstallX' Plants a Few Commands - They Are Carried Out Consistently, And only Then Proceed To The Next Execution Of The Said 'AutoInstallX'.
For Each Option Called 'AutoInstallX', Letters After '-ai', Be The Corresponding Line In The Configuration File (Parameter 'AutoInstallX'). Thus If you Specify '-ai37', In The Configuration File Must Be Present At Least One Line Of The Form AutoInstall3="auto_install3.exe Switches For Program3" And AutoInstall7="auto_install7.exe Switches For Program7", Otherwise It Wll Display An Error Message.

Key Automatically Suppresses Dialog 'BeginPrompt', I.e. You Can Not Specify The Key '-y'.

-fmX

Mode / Time Display Window 'FinishMessage' Where X: Mode/Time Display Window 'FinishMessage', Where X:

  • 0 - Do Not Display Window
  • 1 - Display Box
  • (N= 2...999) - Display a Window For N Seconds Countdown Is Displayed On The Button "OK", And On Its Expiry Window 'FinishMessage' Is Cosed AndThe Work Of The Module Stops

Key Override Prefixes 'fmX' In The Configuration File. Command line Has Prioritet.
no 'FinishMessage' In The Configuration File Keys '-fmX' Ignored.

-gfX

Display Mode Dialog.
okon.Iz Command line, You Can Change Some Flags In The 'GUIFlags' Configuration File:

  • -gf-8  - Would Remove The XP Style (Minus The Front Of Eight), Will Take The Rest Of The Configuration File
  • -gf+256  - Add Confirmation Cancel The Installation, The Rest Will Take From The Configuration File
  • -gf-8+256  Or
  • -gf+256-8  - Would Remove The XP Style Will Add a Confirmation Cancel The Installation And The Rest Will Take From The Configuration File

Attempts To Reset The Flag Is Not Set, Or Add An Already Installed Flag - Ignorantly.
Naprimer If The Configuration File Was GUIFlags="136" (8+128), And Run The SFX Archive With The Key "-gf-8+128-256+1024", It Only Resets Flag 8 And Add The Flag In 1024, And Ignore The Rest (In 'GUIFlags' Flag 128 Has Already Been Installed And The Flag 256 Is Not Reset And Nothing). As a Result Of SFX Archive To Run For GUIFlags="128+1024".

If You Do Not Specify Anticipatory Sign (+ Or -), You Can Completely Replace 'GUIFlags' Configuration File:

  • -gf64+8  - 'GUIFlags' Will Be Equal To "72", Regardless Of What Is Stated In The Configuration File.

Key Parameter Was Varied 'GUIFlags' In The Configuration File.

-gmX

Display Mode Unpack Where X:

  • 0 - Normal Mode - Native Mode 7-Zip Archiver, I.E. With Buttons "Cancel" And "Close" (Which In The UpperRight Corner)
  • 1 - Display The Process Of Unpacking But Hide The "Cancel", Button To Block The Close "Button" (Which Is In The Upper Right Corner Of The Window) And Press [Esc] Key On Your Keyboard
  • 2 - Do Not Display The Extraction Dialog Completely (ie "quiet" Mode)

Key Override Option 'GUIMode' In The Configuration File. Key Not Suppresses Dialog 'BeginPrompt', It Needs To Use The Keys '-ai', '-aiX' Or '-y'.

-h Or -?

Displays a Dialog With The Text Contained In 'HelpText', And Click 'OK'. If 'HelpText' In The Configuration File It Will Display a Message: (Option "HelpText" Is Not Specified In The Configuration File)

After Closing This Dialog, Work Unit Will Be Interrupted (Ie Nothing Will Unpack/install).

-nr

Suppresses startup programs listed in 'RunProgram', 'ExecuteFile', 'AutoInstall'or 'AutoInstallX', ie. Performed Only Unpacking. Also do not create shortcuts not deleted files and SFX archive ('Delete' , 'DeleteX'', 'Shortcut', ''ShortcutX And 'SelfDeletenot implemented)

The Key Does Not Work When Unzipped To a Temporary Folder.

-omX

Overrides The 'OverwriteMode' Configuration File.

  • 0 - Overwrite All Files (Default)
  • 1 - Do Not Overwrite Existing Files
  • 2 - overwrite o&nly the files that are older than in SFX archive 
  • 8 - To Skip The File Is Locked System

From the values 0, 1, 2 can only use one but it can be combined with the flag of 8 on the same principle as in '-gfX'.

-sdX

Overrides the 'SelfDelete' configuration file.

  • 0 - NOT DELETE SFX archive, even if in the configuration file is present SelfDelete="1"
  • 1 - Remove SFX Archive, Regardless Of The Availability Of 'SelfDelete' In The Configuration File
-sfxconfig

Allows You To Retrieve From SFX Archive And Save The Configuration File. After The Key Through The Gap Indicates The Name (Or Path And File Name) File. Name And File Extension Can Be Any. Are Allowed In Both Absolute And Relative Paths. If The Folder Does Not Exist - It Will Be Created. If You Create a Folder Or Write a File To Storage Media (eg, CD-ROM) Will Not - Will See An Error Message. Examples:

  • -sfxconfig config.txt  - save the file "config.txt" in the current folder*
  • -sfxconfig \config.txt  - save the file "config.txt" in the root directory that contains the current directory*
  • -sfxconfig ..\config.txt  - save the file "config.txt" in the folder level above the current folder *
  • -sfxconfig D:\DISTRIBUT\7-Zip\folder with spaces and Cyrillic\konfiguratsiya.cfg  - save the file "Configuration.cfg" in the folder "D:\DISTRIBUT\7-Zip\folder with spaces and the Cyrillic alphabet"

* On The Current Folder cm. Relative Paths.

-sfxversion

Displays a window with information about:

  • Version and Date of Creation of SFX Module
  • Version of the Source Archiver 7-Zip Used in the Module
  • Methods and Filters are Supported Compression Module

It is useful when the information in the resource module was changed by someone.

-y

Hides the dialog box 'BeginPrompt' 'ExtractPath' combined 'BeginPrompt' + 'ExtractPath' and 'FinishMessage' Window unpacking (if not hidden variables 'GUIMode' or key '-gm2') will be shown When you try to interrupt the unpacking/installing, it will be interrupted without user confirmation box 'CancelPrompt' Windows errors if any will be displayed regardless of this key. Key of the original SFX module archiver 7-Zip.