Ignore:
Timestamp:
2000-12-08T04:16:25+13:00 (23 years ago)
Author:
cs025
Message:

Fixes for Windows 3.1; avoids crashes at the expense of functionality (to be
reinstated).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsinstall.cpp

    r1657 r1765  
    262262{
    263263  // don't do registry stuff under windows 32s
    264   if (this->platform.isWindows32s() && FALSE)
     264  // TODO: actually reinstate what is required
     265  if (this->platform.isWindows32s())
    265266    {
    266267      return true;
     
    509510
    510511
     512    if (this->platform.isWindows32s() == false) // NB: don't add this shortcut under
     513                                              // Windows32s as it causes a crash
     514                                              //
     515                                              // TODO: reinstate this with Win3.1
     516                                              // happy code
     517  {
    511518      FilePath uninstallPath(this->destinationPath->pathString(), "gssetup.exe");
    512519      FilePath logPath(this->destinationPath->pathString(), "install.log");
     
    515522      {
    516523      }
    517 
     524    }
    518525      // disconnect from program manager
    519526      this->progman->disconnect();
     
    621628  FilePath destExeFile(*destExePath, "gssetup.exe");
    622629
    623   if (!CopyFile(srcExeFile.cString(), destExeFile.cString(), false))
    624     {
    625       return false;
    626     }
     630  if (this->platform.isWindows32s() == false) // NB: Don't copy the setup executable
     631                                                                                        // to Windows32s as it causes a hang!
     632  { if (!CopyFile(srcExeFile.cString(), destExeFile.cString(), false))
     633        {
     634        return false;
     635        }
     636  }
    627637  return true;
    628638}
     
    740750        case dirpath_OPTION:
    741751      ((dirSelector *) GetWindowLong(Dialog, GWL_USERDATA))->setOption(IsDlgButtonChecked(Dialog, dirpath_OPTION));
    742       if (HIWORD(wParam) == BN_CLICKED && false) 
     752      if (HIWORD(wParam) == BN_CLICKED && false)
    743753        // don't do the enable/disable these days
    744754        {
     
    777787        case PSN_KILLACTIVE:
    778788      break;
    779      
     789
    780790    case PSN_WIZNEXT:
    781791      {
     
    9941004          }
    9951005        else
    996           { 
     1006          {
    9971007        // configure the installation
    9981008        install.setDestination();
    9991009        install.setManifest();
    1000        
    1001         // perform installation
    1002         install.copyFiles();
    1003         install.updateProgman();
    1004         install.updateRegistry();
     1010
     1011        install.copyFiles();       // caused page fault; Windows 3.1
     1012        install.updateProgman();   // caused divide overflow; Windows 3.1
     1013    install.updateRegistry();
    10051014        install.updateProfiles();
    1006         install.updateSetupExe();
     1015        install.updateSetupExe();  // caused bomb-out of Windows; 3.1
    10071016
    10081017        // close log
     
    10241033      DestroyWindow(Window);
    10251034      return 0L;
    1026      
     1035
    10271036    case WM_DESTROY:
    10281037      {
Note: See TracChangeset for help on using the changeset viewer.