Suppressing an Automatic Reboot

About this task

During an installation of Sterling Connect:Direct for Microsoft Windows (or its prerequisites), the Windows installer can determine when a reboot of the system is necessary. Commonly, a reboot is required because the installer is attempting to install a file that is currently being used. While you are prompted with a request to reboot during an interactive installation, the installer initiates the reboot automatically during a silent installation.

This section explains how to suppress most automatic reboots during an installation, allowing more control on scheduling a necessary reboot at your own convenience. It applies to new installations, as well as to upgrades from an older version or maintenance updates. Follow these steps to suppress most automatic reboots during the installation of IBM Sterling Connect:Direct for Microsoft Windows and detect when a reboot is necessary:

Procedure

  1. Close all other applications before starting the installation, especially any Connect:Direct application, such as Command Line Interface. There is no need to stop the Connect:Direct service, as it will be done by the installer automatically.
  2. Specify REBOOT=ReallySuppress as part of code /v parameter on the installation command line, like:
    cdw_install.exe /v"REBOOT=ReallySuppress ... " /w /clone_wait
    Note: IBM Sterling Connect:Direct for Microsoft Windows must be installed by a Microsoft Windows administrator.
  3. Wait for the installation to complete and check its return code. A return code of 3010 indicates that a reboot is required. A return code of 0 indicates success and no reboot is required. If a reboot is required, it is important to reboot the system as soon as possible and before using Sterling Connect:Direct for Microsoft Windows else the product may not function correctly.

Example

Example batch file snippet for a new silent installation

call cdw_install.exe /v"REBOOT=ReallySuppress CD_SRVR_INI_FILE=C:\cd_srvr.ini /l*v CDWinInst.log /qn" /s /w /clone_wait 
if %ERRORLEVEL% equ 3010 (
     echo The installation requires a reboot. Please reboot the system as soon as poosible.
 ) else if %ERRORLEVEL% equ 0 (
     echo The installation completed successfully. No reboot required.
 ) else (
     echo The installation has failed with RC=%ERRORLEVEL%
 )