ShareWare and FreeWare programs for domain administrators and Windows users




                             



Tested on:


Windows 7 Enterprise 32 bit

Windows 7 Home Premium 64 bit

Windows XP SP2 32 bit



Page updated February 2013





If you is satisfied with my work, please consider to use the Donate button.


Do you wanna know why?

Inno Setup installation syntax:   Warning!


Default silent install switches:

/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-


Install Switches:


/COMPONENTS  /DIR  /GROUP  /LANG  /LOADINF  /LOG  /MERGETASKS  /NOCANCEL  

/NOICONS  /NORESTART  /PASSWORD  /RESTARTEXITCODE  /SAVEINF  /SILENT  

/SUPPRESSMSGBOXES  /SP-  /TASKS  /TYPE  /VERYSILENT

Install Exit Codes:


Un-Install Switches:


/LOG  /NORESTART  /SILENT  /SUPPRESSMSGBOXES  /VERYSILENT

Vendors website


CommandLine Options


Explore Package Knowledge Base



Install Switches




/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. If no custom type is defined, this parameter is ignored.

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.

This parameter does not change the state of components that include the fixed flag.

Example:

Deselect all components, then select the "help" and "plugins" components:

/COMPONENTS="help,plugins"

Example:

Deselect all components, then select a parent component and all of its children with the exception of one:

/COMPONENTS="*parent,!parent\child"




/DIR="x:\dirname"

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




/GROUP="folder name"

Overrides the default folder name displayed on the "Select Start Menu Folder" wizard page. If the [Setup] section directive DisableProgramGroupPage> was set to "yes", this command line parameter is ignored.




/LANG=language

Specifies the language to use. language specifies the internal name of the language as specified in a [Languages] section entry.

When a valid /LANG parameter is used, the "Select Language" dialog will be suppressed.




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




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




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

Example: Keep the default set of selected tasks, but additionally select the "desktopicon" and "fileassoc" tasks:

/MERGETASKS="desktopicon,fileassoc"

Example: Keep the default set of selected tasks, but deselect the "desktopicon" task:

/MERGETASKS="!desktopicon"




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




/NOICONS

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




/NORESTART

Instructs Setup not to reboot even if it's necessary.




/PASSWORD=password

Specifies the password to use. If the [Setup] section directive Password was not set, this command line parameter is ignored.

When an invalid password is specified, this command line parameter is also ignored.




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




/SAVEINF="filename"

Instructs Setup to save installation settings to the specified file.

Don't forget to use quotes if the filename contains spaces.




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


WARNING: In very few cases it's been reported, that /VERYSILENT can crash the installation, if not supplied with /NORESTART

WARNING: If you try to see some boxes while installing with default silent, your computer might totally freese, if you only use these swithes:

               /NORESTART /SP-




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



/SP-

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




/TASKS="comma separated list of task names"

Specifies a list of tasks that should be initially selected.

Only the specified tasks 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.

Example:

Deselect all tasks, then select the "desktopicon" and "fileassoc" tasks:

/TASKS="desktopicon,fileassoc"

Example:

Deselect all tasks, then select a parent task and all of its children with the exception of one:

/TASKS="*parent,!parent\child"




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






Install exit codes:


0 Setup was successfully run to completion.


1 Setup failed to initialize.


2 The user clicked Cancel in the wizard before the actual installation started, or chose "No" on the opening "This will install..." message box.


3 A fatal error occurred while preparing to move to the next installation phase (for example, from displaying the pre-installation wizard pages to the actual installation process). This should never happen except under the most unusual of circumstances, such as running out of memory or Windows resources.


4 A fatal error occurred during the actual installation process. Note: Errors that cause an Abort-Retry-Ignore box to be displayed are not fatal errors. If the user chooses Abort at such a message box, exit code 5 will be returned.


5 The user clicked Cancel during the actual installation process, or chose Abort at an Abort-Retry-Ignore box.


6 Before returning an exit code of 1, 3, or 4, an error message explaining the problem will normally be displayed.





Un-Install Switches:




/LOG

Causes Uninstall to create a log file in the user's TEMP directory detailing file uninstallation and [UninstallRun] actions taken during the uninstallation process. This can be a helpful debugging aid.

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, Uninstall will abort with an error message.




/NORESTART

Instructs the uninstaller not to reboot even if it's necessary.




/SILENT, /VERYSILENT

When specified, the uninstaller will not ask the user for startup confirmation or display a message stating that uninstall is complete. Shared files that are no longer in use are deleted automatically without prompting. Any critical error messages will still be shown on the screen. When '/VERYSILENT' is specified, the uninstallation progress window is not displayed.

If a restart is necessary and the '/NORESTART' command isn't used (see below) and "/VERYSILENT" is specified, the uninstaller will reboot without asking.



/SUPPRESSMSGBOXES

Instructs the uninstaller to suppress message boxes. Only has an effect when combined with "/SILENT" and "/VERYSILENT".



;o) Your brain is also like a parachute. It works best when it's open















       A l l  t h e  f a l l i n g  M a t r i x  l e t t e r s  e n d s  d o w n  h e r e,  s o
       Z i o n s  r o b o t  w e b  c r a w l e r s  e a t s  t h e  k e y w o r d s    ;O)






windows,vbscript,editor,freeware,utility,download