RunProgram="\"%ProgramFiles%\\Setup.exe\"" RunProgram="\"regedit\" settings.reg" AutoInstall="\"%ProgramFiles%\\Setup.exe\"" AutoInstall="\"regedit\" settings.reg"
After Launching SFX Archive "sfx.exe -gm2 -s -y", Keys "-s -y" Will Be Transferred To The First Row And Executed
RunProgram="\"%ProgramFiles%\\Setup.exe\" -s -y" RunProgram="\"regedit\" settings.reg".
If This SFX Archive To Launch So, "sfx.exe -ai -s -y", Then The Keys "-s -y" Will Be Transferred To The Third Line And Executed
AutoInstall="\"%ProgramFiles%\\Setup.exe\" -s -y" AutoInstall="\"regedit\" settings.reg"
Most Parameters Can Be Used As a Command-line Parameters When Launching SFX Archive. Exceptions Are These Multiple Parameters:
AutoInstall
AutoInstallX
Delete
DeleteX
RunProgram
Shortcut
ShortcutX
Parameters of The Same Name in The Configuration File When It Will Be Reassigned (The Parameters In The Command line Take Precedence), Missing - Will Be Added. Possible Recording Parameters In The Command line:
sfx.exe -InstallPath="%ProgramFiles%\\IEPro" sfx.exe -SetEnvironment="Var1=E:\\totalcmd" -SetEnvironment="Var2=%%T\\" sfx.exe -FinishMessage="new_finish_message" sfx.exe -InstallPath="%Path7z%\\7zSFX_Tools" -FinishMessage="7z SFX Tools Installed!" -ai -gm2 -fm20
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. |
-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'. 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:
Key Override Prefixes 'fmX' In The Configuration File. Command line Has Prioritet. |
-gfX | Display Mode Dialog.
Attempts To Reset The Flag Is Not Set, Or Add An Already Installed Flag - Ignorantly. If You Do Not Specify Anticipatory Sign (+ Or -), You Can Completely Replace 'GUIFlags' Configuration File:
Key Parameter Was Varied 'GUIFlags' In The Configuration File. |
-gmX | Display Mode Unpack Where X:
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.
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.
|
-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:
* On The Current Folder cm. Relative Paths. |
-sfxversion | Displays a window with information about:
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. |