\
Windows Installer FAQ (the basics)
Formatted Strings
Square Brackets - Escaping
Square Brackets - Escaping |
To make it easy to use left and right square brackets in
formatted strings, MAKEMSI defines
these macros:
#define LSB [\[] ;;[
#define RSB [\]] ;;]
The following "Shortcut" command's fragment will fail:
<$Shortcut Arguments='//NoLogo "[INSTALLDIR]Something[SquareCharsBeforeAndAfterCanBeMisInterpreted].vbs"' ...>
This one with the brackets replaced (where they aren't used for formatting)
will not fail:
<$Shortcut Arguments='//NoLogo "[INSTALLDIR]Something<$LSB>SquareCharsBeforeAndAfterCanBeMisInterpreted<$RSB>.vbs"' ...>