This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Displaying configuration status
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 13, 2009
04:02 PM
Displaying configuration status
Hi,
I was wondering how I would display a configuration status to the user. I don't want them to think the installer has frozen, so as the installer is configuring components, I want to display the current action.
To that end, I created a custom dialog composed of a list box. As I perform a configuration task, I want to update the list box. So I have the following code
However, the dialog does not appear until all the configuration tasks has completed.
Does anyone have any suggestions?
Thanks
Jeff
I was wondering how I would display a configuration status to the user. I don't want them to think the installer has frozen, so as the installer is configuring components, I want to display the current action.
To that end, I created a custom dialog composed of a list box. As I perform a configuration task, I want to update the list box. So I have the following code
while( !bDone )
nId = WaitOnDialog( sDialog );
switch( nId )
case DLG_INIT:
hwndDlg = CmdGetHwndDlg( sDialog );
SdGeneralInit( sDialog, hwndDlg, STYLE_BOLD, szSdProduct );
SdSetDlgTitle( sDialog, hwndDlg, sTitle );
nStatusText = ListCreate( STRINGLIST );
CtrlSetList( sDialog, _SDCONFIGSTATUS_STATUSLIST, nStatusText );
ListAddString( nStatusText, "Configuring Componet 1", AFTER );
CtrlSetList( sDialog, _SDCONFIGSTATUS_STATUSLIST, nStatusText );
//perform task1 here;
ListAddString( nStatusText, "Configuring Componet 2", AFTER );
CtrlSetList( sDialog, _SDCONFIGSTATUS_STATUSLIST, nStatusText );
//perform task2 here;
case _SDCONFIGSTATUS_STATUSLIST:
nMessage = CtrlGetSubCommand( sDialog );
case NEXT:
bDone = TRUE;
default:
if ( SdIsStdButton( nId ) && SdDoStdButton( nId )) then
bDone = TRUE;
endif;
endswitch;
endwhile;
However, the dialog does not appear until all the configuration tasks has completed.
Does anyone have any suggestions?
Thanks
Jeff
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 14, 2009
11:00 AM
Its not quite what i wanted, but it has the same effect.
You can display a small dialog with a progress bar and using SetStatusWindow( nPercent, sMsg ). Here's an example
You can display a small dialog with a progress bar and using SetStatusWindow( nPercent, sMsg ). Here's an example
Enable( STATUSDLG );
SetStatusWindow( 0, "Performing Task1" );
// do Task 1
SetStatusWindow( 33, "Performing Task2" );
// do Task 2
SetStatusWindow( 66, "Performing Task3" );
// do Task 3
SetStatusWindow( 100, "All done" );
Disable( STATUSDLG );
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)