Using MCScript to Update Your Script Files
300
Management Edition
Miscellaneous macros
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
Macro name
Description
!PLATFORM!
The platform the script is running on. Can be “WNT,”
“W95,” “W3X,” or “NW.”
!MANSERVERNAME!
Name of the Management Server for this machine.
!MACHINENAME!
Name of the machine that the script is being run on.
!LANG!
Standard TLA (Three-Letter Acronym) for the language of
the component/product. See
“Language”
for details.
!INT_QUOTE!
Allows you to embed a quote within a parameter, which is
useful for the CREATEPROCESS and
CREATEPROCESS_EX commands.
!INT_SPACE!
Allows you to embed a space within a parameter, which is
useful for the CREATEPROCESS and
CREATEPROCESS_EX commands.