PDA

View Full Version : Changing "setup status" text on progress dialog



J_anitha
09-22-2010, 06:45 AM
Hi,
I was using IS 2009, and now upgraded to 2011.
Was using the following code, for changing the text which gets displayed on the top left side of progress dialog.

hWndStatus = FindWindow( "", IFX_SETUP_TITLE );
if ( hWndStatus != NULL ) then
User32.SetDlgItemText( hWndStatus, 50, "My text");
User32.InvalidateRect(hWndStatus, NULL, FALSE);
User32.UpdateWindow(hWndStatus);
endif;

This doesnt seem to work with 2011.
Any idea what would've gone wrong? Or is there an alternate way of doing this..?

Thanks,
anitha

DebbieL
09-22-2010, 08:23 AM
I'd suspect it has something to do with the InstallScript/Unicode improvements that have been introduced in InstallShield 2011. Have you had a chance to review the "Changes to Win32 API Definitions" and "Ensuring that Your InstallScript Code Supports Unicode" sections of the release notes? Those sections are also near the beginning of the following KB article:
Q208911: Upgrading Projects to InstallShield 2011 (http://support.installshield.com/kb/view.asp?articleid=Q208911)

I hope that helps.

J_anitha
09-23-2010, 01:23 AM
Thanks Debbie.
I shouldve read it before upgrading to 2011.
I got it working now :)

rgds,
anitha