The "MacroCfg" Command |
Lots of MAKEMSI commands can be configured (and have parameter default values set) using PPWIZARD macros.
This command is useful where you have an isolated piece of code for which you want particular values set but you don't want to effect other parts of your script which may be relying on an alternative configuration.
This command allows you to safely save (and optionally change) a macros value for later restoration with a matching "/MacroCfg" command.
This command takes these parameters:
The default value is "" which means no validation takes place, otherwise you should pass "Y" or "N" for the question "Should the macro already exist?".
EXAMPLE |
This example shows how you can make a temporary change to the "DEFAULT_ROW_VALIDATE_NO_WHERE" macro and then restore its original value (without needing to know what that is):
... <$MacroCfg "DEFAULT_ROW_VALIDATE_NO_WHERE" VALUE="NEW -MISSINGDATA"> <$Row ...> <$Row ...> <$Property "ABCDEFG" VALUE="C:\"> ... <$/MacroCfg>