Performing a Silent Installation
This appendix describes how to perform a silent installation, upgrade, or uninstallation of the Network Registrar product. A silent installation or upgrade allows for unattended product installations based on the configuration values that are provided at the time that a silent installation response file was created.
You must use a "clean install" mode silent-response file for fresh installations, and an "upgrade" mode silent-response file for product upgrades. The configuration values specified in the silent-response files are specific to a particular installation or upgrade environment, and cannot be mixed and matched. Unpredictable results occur if you attempt to use a silent-response file that does not exactly match the installation or upgrade system configuration.
Follow these procedures to generate a silent installation response file:
Step 1 For each silent installation or upgrade, use these commands to create a separate response file:
Complete the installation or upgrade steps as you normally would. This command installs or upgrades Network Registrar according to the parameters that you specified. It also generates the setup.iss response file based on these parameters. Look for this file in the Windows installation directory, such as C:\WINDOWS. Each time you use the command, the file is overwritten.
Cisco recommends that you rename or relocate this file before running the silent-process in Step 2. Rename the file to something distinguishable, such as local-nr-https-install, and relocate it to a temporary folder.
pkgask -d install-path -r response-file nwreg2
Complete the installation or upgrade steps as you normally would. This action does not actually install or upgrade Network Registrar, but simply generates a response file by the specified name that includes the installation or upgrade parameters that you want to replicate for additional installations or upgrades. Cisco recommends that you name the file something distinguishable, such as local-nr-upgrade or regional-nr-https-install.
Create a text response file with these variable declarations (modify the values to suit the desired configuration for your system):
CNR_CCM_MODE=local | regional
DATADIR=/opt/nwreg2/local | regional/data
LOGDIR=/opt/nwreg2/local | regional/logs
ROOTDIR=/opt/nwreg2/local | regional
TEMPDIR=/opt/nwreg2/local | regional/temp
WEBUI_SEC_PORT=8443 | 8444
Step 2 Use these commands to invoke the silent installation or upgrade for each instance:
setup.exe -s -f1path+response-file
Note that the silent installation fails if you do not specify the -f1 argument with a fully qualified path to the response file, unless the response file is located in the i386 directory and setup.exe is run from that directory.
pkgadd -a pkgdir/nwreg2/install/cnradmin -d pkgdir -r response-file nwreg2
install_cnr -r response-file
Step 3 If you want to uninstall the product, invoke the silent uninstallation:
uninst.exe -y -f"install-dir\DeIsL1.isu" -c"install-dir\unregistrar.dll"
pkgrm -a pkgdir/nwreg2/install/cnradmin -n nwreg2
•Linux (this command is noninteractive except during an error):