Writing Comments
InstallShield 2024 » InstallScript Language Reference
InstallScript gives you two ways to create comments in a script. You can use either method to add explanatory text to your script or to exclude or “comment out” certain parts of your script for testing and debugging purposes.
Caution:You can begin comments anywhere in a script—with one exception: Comments cannot be placed on the same line as an #ifdef or #ifndef statement. You must write comments before or after these statements, if necessary. Otherwise, the compiler returns an error.
Block of Text
One way to create a comment is to enclose a block of text between the character pairs /* and */. This method makes it easy to write a comment over multiple lines:
/* This is a line of sample code that shows you
* how to use the InstallScript function PlaceBitmap. */
Line by Line
The second way is to insert the characters // into a line. The compiler ignores everything to the right of the double slashes on that line only.
// This is a line of sample code showing the
// InstallScript function PlaceBitmap.