Ignore:
Timestamp:
2001-06-13T11:02:50+12:00 (23 years ago)
Author:
cs025
Message:

Added better monitoring of installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsinstall.cpp

    r2288 r2534  
    257257
    258258  // do the copy
    259   this->manifest->copy(this->gsdlSourcePath);
    260 
    261   return true;
     259  return this->manifest->copy(this->gsdlSourcePath);
    262260}
    263261
     
    413411  this->readLog();
    414412  delete logPath;
    415  
     413
    416414  return true;
    417415}
     
    431429    {
    432430      if (!this->manifest->undoAction(command, params))
    433     { 
     431    {
    434432      if (!gsdlProfile.undoAction(command, params))
    435         { 
     433        {
    436434          if (!this->gsRegister->undoAction(command, params))
    437         { 
     435        {
    438436          if (!this->progman->undoAction(command, params))
    439437            {
    440438            }
     439        else
     440        {
     441
     442        }
    441443        }
    442444        }
    443445    }
    444446    }
    445  
     447
    446448}
    447449
     
    456458    }
    457459  if (this->installFullVolume)
    458     {   
     460    {
     461      this->manifest->selectGroup("supporting", *this->dataDestPath);
    459462      this->manifest->selectGroup("collection", *this->dataDestPath);
    460463    }
    461464  else
    462     {   
     465    {
    463466      this->manifest->selectGroup("database", *this->dataDestPath);
    464467    }
     
    784787    }
    785788      break;
    786      
     789
    787790    case WM_NOTIFY:
    788791      switch (((LPNMHDR) lParam)->code)
     
    791794      {
    792795        dirSelector *selector = ((dirSelector *) GetWindowLong(Dialog, GWL_USERDATA));
    793        
     796
    794797        // bodge to set the dialogue path to the correct value
    795798        if (selector != rootSelector)
     
    798801        SetDlgItemText(Dialog, dirpath_PATH, selector->selectedPath());
    799802          }
    800        
    801         if (selector->isFinal())
    802           {
    803         PropSheet_SetWizButtons(GetParent(Dialog), PSWIZB_BACK | PSWIZB_FINISH);
    804           }
    805         else
    806           {
    807         PropSheet_SetWizButtons(GetParent(Dialog), PSWIZB_BACK | PSWIZB_NEXT);
    808           }
     803
     804
     805        PropSheet_SetWizButtons(GetParent(Dialog), (selector->isFirst() ? 0 : PSWIZB_BACK) |
     806                                                 (selector->isFinal() ? PSWIZB_FINISH : PSWIZB_NEXT));
    809807      }
    810808      break;
     
    856854
    857855void GSInstall_init_propertySheet(PROPSHEETPAGE &ppage, char *prompt, char *optPrompt,
    858                   char *title, GSInstall &installer, bool isFinal)
     856                  char *title, GSInstall &installer, bool isFirst, bool isFinal)
    859857{
    860858  GSInstall_dirPathData *data = new GSInstall_dirPathData;
     
    862860  // create the directory Selector
    863861  data->dirSelect = new dirSelector(prompt, optPrompt, title, installer.installPath());
     862  data->dirSelect->setFirst(isFirst);
    864863  data->dirSelect->setFinal(isFinal);
    865864
     
    933932                "Choose a directory to install your "
    934933                                "GreenStone software to.", NULL,
    935                                 "Select", install, false);
     934                                "Select", install, true, false);
    936935  GSInstall_init_propertySheet(ppage[1],
    937936                   "Choose a directory to install the collection "
     
    945944                   "computer.\n\n",
    946945                   "Install all collection files",
    947                    "Select", install, true);
     946                   "Select", install, false, true);
    948947
    949948  reply = (PropertySheet (&pshead) >= 0);
     
    10411040        install.setManifest();
    10421041
    1043         install.copyFiles();       // caused page fault; Windows 3.1
     1042        if (!install.copyFiles())       // caused page fault; Windows 3.1
     1043      { MessageBox(0, "Not enough space to install required files", "Greenstone Installer", MB_OK);
     1044        install.abortLog();
     1045         DestroyWindow(Window);
     1046         return false;
     1047      }
    10441048        install.updateProgman();   // caused divide overflow; Windows 3.1
    10451049        install.updateRegistry();
Note: See TracChangeset for help on using the changeset viewer.