Installer Options

From CCCP
Jump to: navigation, search

It is possible to specify all of the installer options from the commandline in a silent install. All directory paths and names defined must use quotes if they contain spaces. Groups of components and tasks must also be surrounded by quotations. This list contains the most relevant parameters with our Inno installer, check their documentation for the full list. These parameters are only relevant to the the CCCP installers from December of 2006 onwards, any earlier versions of the CCCP used NSIS which has different parameters (read up on them). The available parameters are:

/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.

In the CCCP installer DisableStartupPrompt is set to yes. The /SP- parameter is unneeded and will have no effect.

/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.
/NORESTART

Instructs Setup not to reboot even if it's necessary. (Not recommended)

/DIR="x:\dirname"

Overrides the default directory name displayed on the Select Destination Location wizard page. A fully qualified pathname must be specified.

The default installation directory on an English locale Windows OS installed on C: is, "C:\Program Files\Combined Community Codec Pack".

/GROUP="folder name"

Overrides the default folder name displayed on the Select Start Menu Folder wizard page.

The default Start Menu folder created is "Combined Community Codec Pack".

/NOICONS

Instructs Setup to initially check the Don't create a Start Menu folder check box on the Select Start Menu Folder wizard page.

TYPE=type name

Overrides the default setup type.

If the specified type exists and isn't a custom type, then any /COMPONENTS parameter will be ignored.

Possible types are: Full, MPCOnly, ZPOnly, NoPlayers, Custom

/COMPONENTS="comma separated list of component names"

Overrides the default component settings. Using this command line parameter causes Setup to automatically select a custom type.

Only the specified components will be selected; the rest will be deselected.

If a component name is prefixed with a "*" character, any child components will be selected as well (except for those that include the dontinheritcheck flag). If a component name is prefixed with a "!" character, the component will be deselected.

Possible components are: CoreWavPack, FFDShow, FLVSplitter, HaaliSplitter, MPVDecoder, VSFilter, Players, Players\MPC, Players\ZoomPlayer
None of the components use the dontinheritcheck flag.

/TASKS="comma separated list of task names"

Specifies a list of tasks that should be initially selected.

Only the specified tasks (and their children) will be selected; the rest will be deselected. Use the /MERGETASKS parameter instead if you want to keep the default set of tasks and only select/deselect some of them.

If a task name is prefixed with a "*" character, any child tasks will be selected as well (except for those that include the dontinheritcheck flag). If a task name is prefixed with a "!" character, the task will be deselected.

Possible tasks are: SetPerceivedTypes, RegisterExtWMP, HaaliShellInfo, HaaliShellInfo\Thumbnails
Only HaaliShellInfo\Thumbnails has the dontinheritcheck flag.

/MERGETASKS="comma separated list of task names"

Like the /TASKS parameter, except the specified tasks will be merged with the set of tasks that would have otherwise been selected by default.

If UsePreviousTasks is set to yes, the specified tasks will be selected/deselected after any previous tasks are restored.

The default tasks selected are: SetPerceivedTypes
In the CCCP installer UsePreviousTasks is set to yes. This means that if you are installing the CCCP over a current copy (perfectly normal) that the installer will first check what your previously selected tasks were, then the list you specify with /MERGETASKS will be merged with that. Instead of from a blank install merging with the CCCP default tasks it is merging with what you used in the last install.