__LINE__

InstallShield 2022 ยป InstallScript Language Reference

During setup compilation, this reserved identifier is replaced by the number of the source file line in which __LINE__ resides. Note that __LINE__ can be specified anywhere in a script where a number constant is allowed, but it is most useful when used with __FILE__ for simple debugging. For example, by constructing a statement like the one below and copying it to strategic locations in your source files during testing, you can easily associate specific parts of your setup with specific sections of your script as you observe your setup run.

   SprintfBox (INFORMATION, "", "File: %s\nLine:%ld", __FILE__, __LINE__);

For more complete and powerful debugging, use the InstallScript Debugger by clicking Debug on the Build menu in InstallShield. For more information, see the InstallScript Debugger Help.

See Also