Coding Long String Literals

InstallShield 2019

To make a very long string literal more easily readable in a script, split the long string into two or more shorter strings, place them on consecutive lines, and concatenate them. In InstallScript, concatenation is performed with the plus sign (+). The example below shows how to split a long string literal across several lines of code in this way:

szMonths = "January, February, March, April, " +

           "May, June, July, August, September, " +

           "October, November, December";

See Also