NEC Express5800/R320a-E4 User Manual page 304

Hide thumbs Also See for Express5800/R320a-E4:
Table of Contents

Advertisement

5-144 Installing and Using Utilities
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 "Configuring Custom Actions" on page 5-138, 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 /?
TIPS:
Programming Notes for Custom Actions, page 5-141
Configuring Custom Actions, page 5-138

Advertisement

Table of Contents
loading

Table of Contents