Changeset 2534 for trunk/gsinstaller/gsinstall.cpp
- Timestamp:
- 2001-06-13T11:02:50+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/gsinstall.cpp
r2288 r2534 257 257 258 258 // do the copy 259 this->manifest->copy(this->gsdlSourcePath); 260 261 return true; 259 return this->manifest->copy(this->gsdlSourcePath); 262 260 } 263 261 … … 413 411 this->readLog(); 414 412 delete logPath; 415 413 416 414 return true; 417 415 } … … 431 429 { 432 430 if (!this->manifest->undoAction(command, params)) 433 { 431 { 434 432 if (!gsdlProfile.undoAction(command, params)) 435 { 433 { 436 434 if (!this->gsRegister->undoAction(command, params)) 437 { 435 { 438 436 if (!this->progman->undoAction(command, params)) 439 437 { 440 438 } 439 else 440 { 441 442 } 441 443 } 442 444 } 443 445 } 444 446 } 445 447 446 448 } 447 449 … … 456 458 } 457 459 if (this->installFullVolume) 458 { 460 { 461 this->manifest->selectGroup("supporting", *this->dataDestPath); 459 462 this->manifest->selectGroup("collection", *this->dataDestPath); 460 463 } 461 464 else 462 { 465 { 463 466 this->manifest->selectGroup("database", *this->dataDestPath); 464 467 } … … 784 787 } 785 788 break; 786 789 787 790 case WM_NOTIFY: 788 791 switch (((LPNMHDR) lParam)->code) … … 791 794 { 792 795 dirSelector *selector = ((dirSelector *) GetWindowLong(Dialog, GWL_USERDATA)); 793 796 794 797 // bodge to set the dialogue path to the correct value 795 798 if (selector != rootSelector) … … 798 801 SetDlgItemText(Dialog, dirpath_PATH, selector->selectedPath()); 799 802 } 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)); 809 807 } 810 808 break; … … 856 854 857 855 void GSInstall_init_propertySheet(PROPSHEETPAGE &ppage, char *prompt, char *optPrompt, 858 char *title, GSInstall &installer, bool isFi nal)856 char *title, GSInstall &installer, bool isFirst, bool isFinal) 859 857 { 860 858 GSInstall_dirPathData *data = new GSInstall_dirPathData; … … 862 860 // create the directory Selector 863 861 data->dirSelect = new dirSelector(prompt, optPrompt, title, installer.installPath()); 862 data->dirSelect->setFirst(isFirst); 864 863 data->dirSelect->setFinal(isFinal); 865 864 … … 933 932 "Choose a directory to install your " 934 933 "GreenStone software to.", NULL, 935 "Select", install, false);934 "Select", install, true, false); 936 935 GSInstall_init_propertySheet(ppage[1], 937 936 "Choose a directory to install the collection " … … 945 944 "computer.\n\n", 946 945 "Install all collection files", 947 "Select", install, true);946 "Select", install, false, true); 948 947 949 948 reply = (PropertySheet (&pshead) >= 0); … … 1041 1040 install.setManifest(); 1042 1041 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 } 1044 1048 install.updateProgman(); // caused divide overflow; Windows 3.1 1045 1049 install.updateRegistry();
Note:
See TracChangeset
for help on using the changeset viewer.