- if (ins_dialog == 0)
- {
- DWORD tid;
- HANDLE thread;
- init_event = CreateEvent (0, 0, 0, 0);
- thread = CreateThread (0, 0, dialog, 0, 0, &tid);
- WaitForSingleObject (init_event, 10000);
- CloseHandle (init_event);
- SendMessage (ins_pprogress, PBM_SETRANGE, 0, MAKELPARAM (0, 100));
- SendMessage (ins_iprogress, PBM_SETRANGE, 0, MAKELPARAM (0, 100));
- SendMessage (ins_diskfull, PBM_SETRANGE, 0, MAKELPARAM (0, 100));
- }
-
- SetWindowText (ins_pkgname, "");
- SetWindowText (ins_filename, "");
- SendMessage (ins_pprogress, PBM_SETPOS, (WPARAM) 0, 0);
- SendMessage (ins_iprogress, PBM_SETPOS, (WPARAM) 0, 0);
- SendMessage (ins_diskfull, PBM_SETPOS, (WPARAM) 0, 0);
- ShowWindow (ins_dialog, SW_SHOWNORMAL);
- SetForegroundWindow (ins_dialog);