if(NS_LoadString(hInst, IDS_MB_WARNING_STR, szMBWarningStr, MAX_BUF) != WIZ_OK)
if(!GetPrivateProfileString("Messages", "MB_WARNING_STR", "", szMBWarningStr, sizeof(szMBWarningStr), szFileIniUninstall))
BOOL CheckLegacy(HWND hDlg){  char      szSection[MAX_BUF];  char      szFilename[MAX_BUF];  char      szMessage[MAX_BUF];  char      szIndex[MAX_BUF];  char      szVersionNew[MAX_BUF];  char      szDecryptedFilePath[MAX_BUF];  int       iIndex;  BOOL      bContinue;  DWORD     dwRv0;  DWORD     dwRv1;  verBlock  vbVersionNew;  verBlock  vbVersionOld;  bContinue = TRUE;  iIndex    = -1;  while(bContinue)  {    ZeroMemory(szFilename,      sizeof(szFilename));    ZeroMemory(szVersionNew,    sizeof(szVersionNew));    ZeroMemory(szMessage,       sizeof(szMessage));    ++iIndex;    itoa(iIndex, szIndex, 10);    lstrcpy(szSection, "Legacy Check");    lstrcat(szSection, szIndex);    dwRv0 = GetPrivateProfileString(szSection, "Filename", "", szFilename, MAX_BUF, szFileIniUninstall);    dwRv1 = GetPrivateProfileString(szSection, "Version", "", szVersionNew, MAX_BUF, szFileIniUninstall);    if(dwRv0 == 0L)    {      bContinue = FALSE;    }    else if(*szFilename != '\0')    {      GetPrivateProfileString(szSection, "Message", "", szMessage, MAX_BUF, szFileIniUninstall);      if(*szMessage == '\0')        /* no message string input. so just continue with the next check */        continue;      DecryptString(szDecryptedFilePath, szFilename);      if((dwRv1 == 0L) || (*szVersionNew == '\0'))      {        if(FileExists(szDecryptedFilePath))        {          char szMBWarningStr[MAX_BUF];          if(NS_LoadString(hInst, IDS_MB_WARNING_STR, szMBWarningStr, MAX_BUF) != WIZ_OK)            lstrcpy(szMBWarningStr, "Warning");          if(MessageBox(hDlg, szMessage, szMBWarningStr, MB_ICONWARNING | MB_YESNO) == IDYES)            return(TRUE);        }        /* file does not exist, so it's okay.  Continue with the next check */        continue;      }      if(GetFileVersion(szDecryptedFilePath, &vbVersionOld))      {        TranslateVersionStr(szVersionNew, &vbVersionNew);        if(CompareVersion(vbVersionOld, vbVersionNew) < 0)        {          char szMBWarningStr[MAX_BUF];          if(NS_LoadString(hInst, IDS_MB_WARNING_STR, szMBWarningStr, MAX_BUF) != WIZ_OK)            lstrcpy(szMBWarningStr, "Warning");          if(MessageBox(hDlg, szMessage, szMBWarningStr, MB_ICONWARNING | MB_YESNO) == IDYES)            return(TRUE);        }      }    }  }  /* returning TRUE means the user wants to go back and choose a different destination path   * returning FALSE means the user is ignoring the warning   */  return(FALSE);}