11.5

Table Of Contents
Dragon Administrator Guide version 11.5
Carrying Out an Administrative
Installation with .bat File
A straightforward way to install Dragon from the command line to a server is to carry out an admin-
istrative installation using a .bat file.
Caution: Only advanced users should attempt any type of administrative Installation.
Note: A script for carrying out a full administrative installation, including installation of Visual
C++ Runtime for Dragon, is provided in the admininstall.bat file at the top of the directory struc-
ture on the DVD. The script provided includes a bare minimum of the options available, so you
might want to read through the Installation using the Dragon command line to find out about
other options you might use.
Understanding the script in admininstall.bat
Below are some of the lines from the script in the admininstall.bat file, a batch file that un-com-
presses setup files into a network location for installation using SMS or another service. Since any
system to be installed might be a 32-bit system or a 64-bit system, the batch file places a different
vcruntime on the server for each type of system.
To run the batch file, you enter admininstall.bat and follow it with three arguments: the locations
of the vcruntime source file for 32-bit systems, the vcruntime source file for 64-bit systems, and
the Dragon .msi file, in that order. Both 32-bit and 64-bit vcruntime files must be available for the
.bat file to run.
Near the top of the batch file, you see the lines that check the parameters entered and if the param-
eters passed are not acceptable, execute a routine that handles that situation:
:rem //Check and analyze input parameters if .%1.==.. goto bad_args if
.%2.==.. goto bad_args if .%3.==.. goto bad_args
If the arguments you pass when you enter the command are acceptable, the batch file sets the
NETWORK_VCRUNTIME_DIR variable to the first argument, the NETWORK_VCRUN-
TIME_X64_DIR to the second and NETWORK_DNS_DIR to the third:
set NETWORK_VCRUNTIME_DIR=%1% set NETWORK_VCRUNTIME_X64_DIR=%2% set
NETWORK_DNS_DIR=%3%
Notice that there are two VCRUNTIME variables. The first is for a 32-bit system and the second
for a 64-bit system. The script needs both to carry out all the action.
In the next section of the batch file, you see the lines that install Visual C++ Runtime for
Dragon, which must be installed before you can install Dragon. The batch file first installs 32-bit
computer vcruntime and displays messages as it progresses:
echo Installing Visual C++ Runtime for Dragon NaturallySpeaking...
116