Setup Command Line Parameters Setup Command Line Parameters

Seite 1 von 3

The Setup program accepts optional command line parameters. These can be useful to system administrators, and to other programs calling the Setup program. /SPDisables the This will install... Do you wish to continue? prompt at the beginning of Setup. Of course, this will have no effect if the DisableStartupPrompt [Setup] section directive was set to yes. /SILENT, /VERYSILENT Instructs Setup to be silent or very silent. When Setup is silent the wizard and the background window are not displayed but the installation progress window is. When a setup is very silent this installation progress window is not displayed. Everything else is normal so for example error messages during installation are displayed and the startup prompt is (if you haven't disabled it with DisableStartupPrompt or the '/SP-' command line option explained above). If a restart is necessary and the '/NORESTART' command isn't used (see below) and Setup is silent, it will display a Reboot now? message box. If it's very silent it will reboot without asking. /SUPPRESSMSGBOXES Instructs Setup to suppress message boxes. Only has an effect when combined with '/SILENT' and '/VERYSILENT'. The default response in situations where there's a choice is: Yes in a 'Keep newer file?' situation. No in a 'File exists, confirm overwrite.' situation. Abort in Abort/Retry situations. Cancel in Retry/Cancel situations. Yes (=continue) in a DiskSpaceWarning/DirExists/DirDoesntExist/NoUninstallWarning/ExitSetupMessage/ConfirmUninstall situation. Yes (=restart) in a FinishedRestartMessage/UninstalledAndNeedsRestart situation. 5 message boxes are not suppressible: The About Setup message box. The Exit Setup? message box. The FileNotInDir2 message box displayed when Setup requires a new disk to be inserted and the disk was not found. Any (error) message box displayed before Setup (or Uninstall) could read the command line parameters. Any message box displayed by [Code] support function MsgBox. /LOG Causes Setup to create a log file in the user's TEMP directory detailing file installation and [Run] actions taken during the installation process. This can be a helpful debugging aid. For example, if you suspect a file isn't being replaced when you believe it should be (or vice versa), the log file will tell you if the file was really skipped, and why. The log file is created with a unique name based on the current date. (It will not overwrite or append to existing files.) The information contained in the log file is technical in nature and therefore not intended to be understandable by end users. Nor is it designed to be machine-parseable; the format of the file is subject to change without notice. /LOG="filename" Same as /LOG, except it allows you to specify a fixed path/filename to use for the log file. If a file with the specified name already exists it will be overwritten. If the file cannot be created, Setup will abort with an error message. /NOCANCEL Prevents the user from cancelling during the installation process, by disabling the Cancel button and ignoring clicks on the close button. Useful along with '/SILENT' or '/VERYSILENT'. /NORESTART Instructs Setup not to reboot even if it's necessary. /RESTARTEXITCODE=exit code Specifies the custom exit code that Setup is to return when a restart is needed. Useful along with '/NORESTART'. Also see Setup Exit Codes. /LOADINF="filename" Instructs Setup to load the settings from the specified file after having checked the command line. This file can be prepared using the '/SAVEINF=' command as explained below. Don't forget to use quotes if the filename contains spaces.

mk:@MSITStore:C:\ISetup.chm::/topic_setupcmdline.htm

04.05.2011

If UsePreviousTasks is set to yes. Using this command line parameter causes Setup to automatically select a custom type. the component will be deselected.05. /GROUP="folder name" Overrides the default folder name displayed on the Select Start Menu Folder wizard page.chm::/topic_setupcmdline. Example: Keep the default set of selected tasks.2011 . Only the specified components will be selected. except the specified tasks will be merged with the set of tasks that would have otherwise been selected by default.!parent\child" /TASKS="comma separated list of task names" Specifies a list of tasks that should be initially selected. Only the specified tasks will be selected. any child tasks will be selected as well (except for those that include the dontinheritcheck flag). this parameter is ignored. then select a parent component and all of its children with the exception of one: /COMPONENTS="*parent. Don't forget to use quotes if the filename contains spaces. If the [Setup] section directive DisableProgramGroupPage was set to yes. If no custom type is defined. /NOICONS Instructs Setup to initially check the Don't create a Start Menu folder check box on the Select Start Menu Folder wizard page. This parameter does not change the state of components that include the fixed flag. the specified tasks will be selected/deselected after any previous tasks are restored.Setup Command Line Parameters /SAVEINF="filename" Instructs Setup to save installation settings to the specified file.htm 04. the Select Language dialog will be suppressed. then select the "desktopicon" and "fileassoc" tasks: /TASKS="desktopicon. any child components will be selected as well (except for those that include the dontinheritcheck flag). then any /COMPONENTS parameter will be ignored. /DIR="x:\dirname" Overrides the default directory name displayed on the Select Destination Location wizard page.plugins" Example: Deselect all components. Seite 2 von 3 /LANG=language Specifies the language to use. Use the /MERGETASKS parameter instead if you want to keep the default set of tasks and only select/deselect some of them. the rest will be deselected. but additionally select the "desktopicon" and "fileassoc" tasks: /MERGETASKS="desktopicon. then select the "help" and "plugins" components: /COMPONENTS="help. Example: Deselect all components. A fully qualified pathname must be specified. If the specified type exists and isn't a custom type. the task will be deselected. When a valid /LANG parameter is used.!parent\child" /MERGETASKS="comma separated list of task names" Like the /TASKS parameter.fileassoc" Example: Deselect all tasks. If a task name is prefixed with a "!" character. then select a parent task and all of its children with the exception of one: /TASKS="*parent.fileassoc" mk:@MSITStore:C:\ISetup. Example: Deselect all tasks. /TYPE=type name Overrides the default setup type. the rest will be deselected. /COMPONENTS="comma separated list of component names" Overrides the default component settings. language specifies the internal name of the language as specified in a [Languages] section entry. If a component name is prefixed with a "!" character. this command line parameter is ignored. If a component name is prefixed with a "*" character. If a task name is prefixed with a "*" character.

If the [Setup] section directive Password was not set. mk:@MSITStore:C:\ISetup. this command line parameter is also ignored.Setup Command Line Parameters Example: Seite 3 von 3 Keep the default set of selected tasks.2011 .05. this command line parameter is ignored. but deselect the "desktopicon" task: /MERGETASKS="!desktopicon" /PASSWORD=password Specifies the password to use. When an invalid password is specified.htm 04.chm::/topic_setupcmdline.

Sign up to vote on this title
UsefulNot useful