DestroyWindow(hDlg);
sgProduct.lastDialog = hDlg;
LRESULT CALLBACK DlgProcUpgrade(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  char buf[MAX_BUF];  switch(msg)  {    case WM_INITDIALOG:      DisableSystemMenuItems(hDlg, FALSE);      GetPrivateProfileString("Messages", "MB_WARNING_STR", "",          buf, sizeof(buf), szFileIniInstall);      SetWindowText(hDlg, buf);      GetPrivateProfileString("Strings", "Message Cleanup On Upgrade", "",          buf, sizeof(buf), szFileIniConfig);      ReplacePrivateProfileStrCR(buf);      SetDlgItemText(hDlg, IDC_MESSAGE0, buf);      GetPrivateProfileString("Strings", "Cleanup On Upgrade Path Box String", "",          buf, sizeof(buf), szFileIniConfig);      SetDlgItemText(hDlg, IDC_STATIC, buf);      MozCopyStr(sgProduct.szPath, buf, sizeof(buf));      RemoveBackSlash(buf);      SetDlgItemText(hDlg, IDC_DELETE_PATH, buf);      RepositionWindow(hDlg, NO_BANNER_IMAGE);      SetDlgItemText(hDlg, IDCONTINUE, sgInstallGui.szContinue_);      SetDlgItemText(hDlg, IDSKIP, sgInstallGui.szSkip_);      SetDlgItemText(hDlg, IDWIZBACK, sgInstallGui.szBack_);      SendDlgItemMessage (hDlg, IDC_STATIC, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);       SendDlgItemMessage (hDlg, IDC_MESSAGE0, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);       SendDlgItemMessage (hDlg, IDC_DELETE_PATH, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);       SendDlgItemMessage (hDlg, IDCONTINUE, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);       SendDlgItemMessage (hDlg, IDSKIP, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);       SendDlgItemMessage (hDlg, IDWIZBACK, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);       break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDCONTINUE:          /* If the installation path happens to be within the %windir%, then           * show error message and continue without removing the previous           * installation path. */          if(IsPathWithinWindir(sgProduct.szPath))          {            GetPrivateProfileString("Strings", "Message Cleanup On Upgrade Windir", "",                buf, sizeof(buf), szFileIniConfig);            MessageBox(hWndMain, buf, NULL, MB_ICONEXCLAMATION);          }          else            /* set the var to delete target path here */            sgProduct.doCleanupOnUpgrade = TRUE;          SiCNodeSetItemsSelected(dwSetupType);          SaveWindowPosition(hDlg);          DestroyWindow(hDlg);          DlgSequence(NEXT_DLG);          break;        case IDSKIP:          sgProduct.doCleanupOnUpgrade = FALSE;          SiCNodeSetItemsSelected(dwSetupType);          SaveWindowPosition(hDlg);          DestroyWindow(hDlg);          DlgSequence(NEXT_DLG);          break;        case IDWIZBACK:          SaveWindowPosition(hDlg);          DestroyWindow(hDlg);          DlgSequence(PREV_DLG);          break;        default:          break;      }      break;  }  return(0);}