Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

changing text in status Dialog

2 replies to this topic


  • Full Members
  • 8 posts

Posted 12 June 2008 - 10:40

I have used following for changing the status dialog text in Install script

User32.SetDlgItemText( hWnd, 50, "Prerequisites");
User32.SetDlgItemText( hWnd, 710, "Please wait while the Windows Media Player setup downloads.");

In 50 where i have changed text it gets jumbled with default text(Setup status).The modified text is seen but the default text is also seen in background .Is there anyway i can avoid this

I have also used blank text in between but no use.User32.SetDlgItemText( hWnd, 50, " ");

whereas in 710 i had no issue in changing text.I thing there cant be custom status dialog for showing status

Any help will be appreciated

Edited by sadhanap, 12 June 2008 - 10:42.

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 17 June 2008 - 16:43

Maybe 50 isn't the correct control you need to set. There might be multiple text boxes on top of each other.


  • Full Members
  • 5 posts

Posted 08 May 2010 - 21:01

I know this is about 2 years too late but I had this exact same problem and I was able to fix it.

Control ID 50 is indeed the CORRECT ID value for the "Setup Status" text.
However to successfully update this text you need to force a repaint on this control.

Just add the following lines after your call to SetDlgItemText;

User32.InvalidateRect(hWnd, NULL, FALSE);

You can prototype the functions like this:
prototype BOOL User32.InvalidateRect( HWND, RECT POINTER, BOOL );
prototype BOOL User32.UpdateWindow( HWND );

Hope this helps,