Ignore:
Timestamp:
2000-11-07T15:12:08+13:00 (23 years ago)
Author:
sjboddie
Message:

Fixed a couple of bugs that surfaced on windows 2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsinstall.cpp

    r1639 r1657  
    274274    {
    275275      //      FilePath *serverPath = new FilePath(this->destinationPath->pathString(), "server.exe");
    276       FilePath *serverPath = new FilePath(this->destinationPath->pathString(), "library.exe");
     276      FilePath *serverPath = new FilePath(this->destinationPath->pathString(), "server.exe");
    277277      FilePath *setupPath = new FilePath(this->destinationPath->pathString(), "gssetup.exe");
    278278      FilePath *logPath = new FilePath(this->destinationPath->pathString(), "install.log");
     
    291291    {
    292292      // get special app path key for windows 9x
    293       exeKeyPath = this->gsRegister->exeKeyId("library.exe");
     293      exeKeyPath = this->gsRegister->exeKeyId("server.exe");
    294294
    295295      // ensure that the exe key exists
     
    350350    }
    351351
     352
    352353  // set the log for writing
     354
    353355  FilePath *logPath = new FilePath(this->destinationPath->pathString(), "install.log");
     356
    354357  this->setLogFile(logPath->pathString());
     358
    355359  this->readLog();
     360
    356361  delete logPath;
     362
    357363}
    358364
     
    395401  // will in fact be the temporary directory as outlined above)
    396402  FilePath *logPath = new FilePath(this->sourcePath->pathString(), "install.log");
     403
    397404  this->setLogFile(logPath->pathString());
    398405  this->readLog();
     
    456463{
    457464  string groupName;
     465  string collectionName;
    458466
    459467  // if we managed to get a connection to the program manager (or explorer
     
    469477      return false;
    470478    }
     479      collectionName = this->configFile->getString("CollectionName");
     480      if (collectionName == "")
     481    {
     482      // TODO: error handling
     483      this->progman->disconnect();
     484      return false;
     485    }
    471486
    472487      // add the group
     
    478493
    479494      // add a "server" icon
    480       FilePath libraryPath(this->destinationPath->pathString(), "library.exe");
    481       if (!this->progman->addIcon(groupName, "Library", libraryPath.pathString(), ""))
     495      FilePath libraryPath(this->destinationPath->pathString(), "server.exe");
     496      if (!this->progman->addIcon(groupName, collectionName, libraryPath.pathString(), "", ""))
    482497    {
    483       // assume that it may be there already
    484     }
    485 
    486       // check for server existence
    487       //      FilePath serverPath(this->destinationPath->pathString(), "server.exe");
    488       //      if (serverPath.exists())
    489       //    {
    490       //      if (!this->progman->addIcon(groupName, "Server", serverPath.pathString(), ""))
    491       //        {
    492           // assume that it may be there already
    493       //        }
    494       //    }
     498    }
    495499
    496500      FilePath readMePath(this->destinationPath->pathString(), "readme.txt");
    497       if (!this->progman->addIcon(groupName, "ReadMe", readMePath.pathString(), ""))
     501      if (!this->progman->addIcon(groupName, "ReadMe", readMePath.pathString(), "", ""))
    498502    {
    499503    }
    500504
    501       FilePath supportPath(this->destinationPath->pathString(), "support.html");
    502       if (!this->progman->addIcon(groupName, "Technical Support", supportPath.pathString(), ""))
     505      FilePath supportPath(this->destinationPath->pathString(), "Support.htm");
     506      if (!this->progman->addIcon(groupName, "Technical Support", supportPath.pathString(), "", ""))
    503507    {
    504508    }
     
    507511      FilePath uninstallPath(this->destinationPath->pathString(), "gssetup.exe");
    508512      FilePath logPath(this->destinationPath->pathString(), "install.log");
    509       if (!this->progman->addIcon(groupName, "Uninstall", uninstallPath.pathString() + " -u " + logPath.pathString(), ""))
     513      if (!this->progman->addIcon(groupName, "Uninstall", uninstallPath.pathString(), " -u " + logPath.pathString(),
     514                  "Remove this Greenstone collection"))
    510515      {
    511516      }
     
    641646             "Greenstone Installer", false) < 0)
    642647    {
    643       MessageBox(0, "Error", app_name, MB_OK);
     648      //      MessageBox(0, "Error", app_name, MB_OK);
    644649      return false;
    645650    }
Note: See TracChangeset for help on using the changeset viewer.