Miscellaneous Macros; Embedding Autorepo Scriptlets In Mcscript.ini - McAfee MANAGEMENT EDITION 2.5 Administrator's Manual

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

Advertisement

Using MCScript to Update Your Script Files

Miscellaneous macros

Macro name
!PLATFORM!
!MANSERVERNAME!
!MACHINENAME!
!LANG!
!INT_QUOTE!
!INT_SPACE!

Embedding AutoRepo scriptlets in MCSCRIPT.INI

Using the AutoRepo scripting language, you can embed simple scripts in
MCSCRIPT.INI that Management Console runs when you add a product to
the Repository. This functionality was initially introduced to enable the
extraction of the NetWare Server file set from the NetShield NetWare package
by running SETUP.EXE with a special set of flags.
The format of the AutoRepo scriptlet is very similar to the normal
install/uninstall script, has no flow commands, and uses a small set of
pre-defined macros. The scriptlet is placed in a section of MCSCRIPT.INI
called [AutoRepoInstall], and its commands are prefixed by Cmd< nn> .
Example:
[AutoRepoInstall]
Cmd00=MKDIR !TEMPDIR!\NSH403\NLMFILES
Cmd10=RUNWAIT !INSTALLPATH!\SETUP.EXE
/WMEDECOMP=!TEMPDIR!\NSH403\NLMFILES -s -SMS
Cmd20=COPY !INSTALLPATH!\MCNWSCRI.INI
!TEMPDIR!\NSH403\NLMFILES\MCSCRIPT.INI
Cmd30=COPY !INSTALLPATH!\MENSHNW.DLL
!TEMPDIR!\NSH403\NLMFILES\MENSHNW.dll
Cmd40=ADDINSTALLPATH !TEMPDIR!\NSH403\NLMFILES
300
Management Edition
Description
The platform the script is running on. Can be "WNT,"
"W95," "W3X," or "NW."
Name of the Management Server for this machine.
Name of the machine that the script is being run on.
Standard TLA (Three-Letter Acronym) for the language of
the component/product. See
Allows you to embed a quote within a parameter, which is
useful for the CREATEPROCESS and
CREATEPROCESS_EX commands.
Allows you to embed a space within a parameter, which is
useful for the CREATEPROCESS and
CREATEPROCESS_EX commands.
"Language"
for details.

Advertisement

Table of Contents
loading

Table of Contents