McAfee MANAGEMENT EDITION 2.5 Administrator's Manual page 280

Hide thumbs Also See for MANAGEMENT EDITION 2.5:
Table of Contents

Advertisement

Using MCScript to Update Your Script Files
Unique
This flag is for internal use only. It must always be set to Yes.
Unique=Yes
Indexed macro assignment keys
These keys are of the form Macro <n>=<MACRO_ASSIGNMENT>, where
<MACRO_ASSIGNMENT> specifies <MACRO_NAME> = <MACRO_VALUE>
<MACRO_NAME>: This variable specifies a macro name consisting of
alphanumeric characters.
<MACRO_VALUE>: This variable specifies characters to substitute for the
macro.
These keys are indexed (repeated in numeric sequence) as Macro0, Macro1,
Macro2, and so forth. The macro value can contain the name of another macro
enclosed between (!) exclamation marks. Obviously, a macro definition that is
recursive (i.e., contains its own name in the value) is not a good idea.
Example:
Macro0=INSTALLDIR=!BASEDIR!\WG
Macro1=BASEDIR=!C:!\NTMEAPPS
Macro2=KEY=System\CurrentControlSet\Services\VxD\WinGuard
Indexed installation script keys
These keys are of the form PreInst <n>=<SCRIPT_COMMAND> .
These keys are indexed (repeated in numeric sequence) as PreInst0, PreInst1,
PreInst2, and so forth. The script command can contain macro substitutions
enclosed between (!) exclamation marks.
Example:
PreInst10=MKDIR "!INSTALLDIR!"
PreInst20=IF VERSION < 815
PreInst30=COPY /REBOOT "!INSTALLPATH!\WGFE95.EXE"
"!INSTALLDIR!\AFILE.EXE"
PreInst40=IF VERSION < 815
PreInst50=COPY /REBOOT "!INSTALLPATH!\WINGRD95.386"
"!INSTALLDIR!\AFILE.386"
Í
280
Management Edition
TIP: For scripts, it's generally a good idea for the key indexes to increase
in increments of 10 instead of being contiguous. This makes it easier to
later insert commands into an existing script.
.

Advertisement

Table of Contents
loading

Table of Contents