(hwndFW = FindWindow(CLASS_NAME_SETUP_DLG, NULL)) != NULL)
(hwndFW = FindWindow(CLASS_NAME_SETUP_DLG, NULL)) != NULL || (hwndFW = FindWindow(CLASS_NAME_SETUP, NULL)) != NULL)
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){	WNDCLASS	wc;  HWND      hwndFW;	hInst = hInstance;	LoadString(hInst, IDS_TITLE, szTitle, MAX_BUF);  // Parse the command line  ParseCommandLine(lpCmdLine);    /*  Allow multiple installer instances with the       provision that each instance is guaranteed       to have its own unique setup directory    */  if(FindWindow("NSExtracting", "Extracting...") != NULL ||    (hwndFW = FindWindow(CLASS_NAME_SETUP_DLG, NULL)) != NULL)  {    if (gbAllowMultipleInstalls)    {      char szTempPath[MAX_BUF];      GetFullTempPathName("", MAX_BUF, szTempPath);      DWORD dwLen = lstrlen(gszWizTempDir);      for(int i = 1; i <= 100 && (FileExists(szTempPath) != FALSE); i++)      {        itoa(i, (gszWizTempDir + dwLen), 10);        GetFullTempPathName("", MAX_BUF, szTempPath);      }      if (FileExists(szTempPath) != FALSE)      {        MessageBox(NULL, "Cannot create temp directory", NULL, MB_OK | MB_ICONEXCLAMATION);        exit(1);      }    }    else    {      if (hwndFW!=NULL)  {    ShowWindow(hwndFW, SW_RESTORE);    SetForegroundWindow(hwndFW);      }    return(1);  }  }	// Figure out the total size of the resources	EnumResourceNames(NULL, "FILE", (ENUMRESNAMEPROC)SizeOfResourcesProc, 0);  // Register a class for the gauge  memset(&wc, 0, sizeof(wc));  wc.lpfnWndProc   = (WNDPROC)GaugeWndProc;  wc.hInstance     = hInstance;  wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);  wc.lpszClassName = "NSGauge";  RegisterClass(&wc);  // Register a class for the main dialog  memset(&wc, 0, sizeof(wc));  wc.style         = CS_DBLCLKS | CS_SAVEBITS | CS_BYTEALIGNWINDOW;  wc.lpfnWndProc   = DefDlgProc;  wc.cbClsExtra    = 0;  wc.cbWndExtra    = DLGWINDOWEXTRA;  wc.hInstance     = hInstance;  wc.hCursor       = LoadCursor(NULL, IDC_ARROW);  wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);  wc.lpszClassName = "NSExtracting";  RegisterClass(&wc);  if(dwMode != SILENT)  {	  // Display the dialog box	  dlgInfo.hWndDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_EXTRACTING), NULL, (DLGPROC)DialogProc);	  UpdateWindow(dlgInfo.hWndDlg);  }	// Extract the files	EnumResourceNames(NULL, "FILE", (ENUMRESNAMEPROC)ExtractFilesProc, 0);		// Launch the install program and wait for it to finish	RunInstaller();	return 0;  }