I need to change the default caption of a MsgBox
message box at runtime. Currently it constantly shows the value of the SetupAppTitle
directive as a caption:
[Setup]
SetupAppTitle=myAppName
But this is specified at compilation time. How to do this at runtime, e.g. from a [Code]
section ?
I don't think changing of the application title (if possible) would be a good idea only for displaying dialog title. So I would use the Windows
MessageBox
which is even used by theMsgBox
. Here is a simple example for Ansi/Unicode versions of Inno Setup:This is how i finally did it:
Thanks to all for your help!