setup - Install Db2 database products command
Installs Db2 database products. This command is only available on Windows operating systems. The command for UNIX operating systems is db2setup.
This utility is located on the Db2 installation media. It launches the Db2 Setup wizard to define the installation and install Db2 database products. If invoked with the -u option, it performs an installation without further input, taking installation configuration information from a response file.
When installing the IBM® Data Server Runtime Client on Windows, the setup options are different from Db2 product
installation. Refer to IBM Data Server Runtime Client
installation command line options (Windows)
for the
appropriate options.
Command syntax
Command parameters
The install Db2 setup command can use the / or - switch symbols interchangeably.
- -c
- Ensures that the setup.exe exits immediately after starting the installation. By selecting this option, the return code of the installation is not available when monitoring the exit code of setup.exe.
- -f
- Forces any Db2 processes to stop before installing.
- -i language
- Specifies the two-letter language code of the language in which to perform the installation.
- -l log-file
- Full path and file name of the log file to use.
Note: If the -l parameter is not specified, the command will use the default install log location of C:\Users<User>\Documents\DB2LOG.
- -m
- Used with -u option to show the progress dialog during the installation. However, it will not prompt for any input.
- -p install-directory
- Changes the installation path of the product. Specifying this option overrides the installation path that is specified in the response file.
- -t trace-file
- Generates a file with install trace information.
- -u response-file
- Specifies the full path and file name of the response file to use.
- -n DB2-copy-name
- Specifies the Db2 copy name that you want the install to use. Specifying this option overrides the copy name that is specified in the response file.
- -o
- Always perform a new copy installation with a generated default copy name. This option is only available for installing the IBM Data Server Driver Package on Windows.
- -? | -h
- Generates usage information.
Usage notes
- When specifying the full path, the path name must be contained within double quotation marks.