NEC Express 5800/R320c-E4 Installation Manual page 153

Table of Contents

Advertisement

Chapter 2 Installing Bundled Software
(e) Executing Visual Basic Scripts
By default, the File field on the Custom Actions page accepts only batch files (.bat) and application files (.exe).
If you want to use a Visual Basic script (.vbs) on the Custom Actions page, you need to specify the
command-line based script host (cscript.exe) in which the executable will run.
When performing the procedure in Chapter 2 (1.5.3 (7) Configuring Custom Actions), do the following:
Next to File, type:
%SystemRoot%\system32\cscript.exe
(%SystemRoot% is an environment variable that automatically inserts your system root directory, typically
C:\WINDOWS.)
Next to Arguments, type the full path name and file name of the executable. For instance:
C:\bin\myvbscript.vbs
If applicable, you can type additional arguments that are specific to your script file or options that are specific to
the cscript session.
For example, you might want to specify the //T option for the cscript session to control the maximum amount of
time your executable is allowed to run:
C:\bin\myvbscript.vbs //T:30
The preceding example would terminate the executable and cscript session after 30 seconds. Setting this type
of time limit is a useful way of ensuring that your executable will not delay the upgrade process.
For more information about the cscript command, open a Command Prompt session and enter cscript /?
Express5800/R320c-E4, R320c-M4, R320d-E4, R320d-M4 Installation Guide (Windows Server 2008)
1. Bundled Software for the Server
153

Advertisement

Table of Contents
loading

Table of Contents