Ignore:
Timestamp:
2000-09-13T05:41:01+12:00 (24 years ago)
Author:
cs025
Message:

Fixes for WindowsNT. Also made File class subclass of FilePath class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsinstall.cpp

    r1539 r1541  
    3838bool config_complete = false;
    3939
     40dirSelector *rootSelector = NULL;
     41
    4042typedef vector<dirSelector *> dirSelVector;
    4143
    4244class GSInstall : public installManager
    43 { 
     45{
    4446private:
    4547  configureFile *configFile; // the installation configure file
     
    680682      { case PSN_SETACTIVE:
    681683        {   dirSelector *selector = ((dirSelector *) GetWindowLong(Dialog, GWL_USERDATA));
     684
     685            // bodge to set the dialogue path to the correct value
     686            if (selector != rootSelector)
     687          { selector->setPath(rootSelector->selectedPath());
     688            SetDlgItemText(Dialog, dirpath_PATH, selector->selectedPath());
     689          }
     690
    682691            if (selector->isFinal())
    683692            { PropSheet_SetWizButtons(GetParent(Dialog), PSWIZB_BACK | PSWIZB_FINISH);
     
    734743{ GSInstall_dirPathData *data = new GSInstall_dirPathData;
    735744
     745    // create the directory Selector
    736746    data->dirSelect     = new dirSelector(prompt, optPrompt, title, installer.installPath());
    737747  data->dirSelect->setFinal(isFinal);
    738748
     749  // if there is no extant root selector, make this it
     750  if (rootSelector == NULL)
     751  { rootSelector = data->dirSelect;
     752  }
     753
     754  // add this directory selector to the installer
    739755  installer.addSelectedDir(data->dirSelect);
    740756
     757  // set up the rest of the page
    741758    ppage.dwSize        = sizeof(PROPSHEETPAGE);
    742759    ppage.dwFlags       = PSP_USETITLE;
     
    788805    }
    789806  else // cheat as the executable etc. is already installed
    790     { 
     807    {
    791808      pshead.ppsp = &ppage[1];
    792809    }
     
    815832
    816833long FAR PASCAL GSInstallWindProc(HWND Window, WORD Message, WPARAM wParameter, LPARAM lParameter)
    817 { 
     834{
    818835  long reply = 0;
    819836
     
    830847
    831848    case WM_USER:
    832     { 
     849    {
    833850      // uninstall action
    834851      if (strstr(app_cmdLine, "-u") != NULL)
     
    10071024 
    10081025  //  config_init("ReTreeval");
    1009  
     1026
    10101027  //  accel = LoadAccelerators(Current, "ReTreevalMenu");
    10111028
Note: See TracChangeset for help on using the changeset viewer.