How to Set the Custom Dialog Box Title in InstallScript

Setting the title of a custom dialog box in an InstallScript or InstallScript MSI project is easy. That is if you can find the needed function in the InstallShield Help. Don’t laugh. It’s not that easy to find.

The function to use is SetWindowText(). Here is an example:

          case DLG_INIT:
                    // get the dialog’s window handle

                    hwndDlg = CmdGetHwndDlg (szDialogName);

                    // set the custom dialog box window title

                    SetWindowText (hwndDlg, “Select Options”);

You first must call CmdGetHwndDlg() to get the handle to the dialog box. Then, just call SetWindowText() with the dialog handle and the title.

That’s it!

 

How to Create 64-Bit Installations in InstallShield, Part 1

One Comment

  1. Kevin

    on 8th Jul, 10 09:07am

    Just what I was looking for. Thanks.

Leave a Comment

Security Code: