Changeset 1502


Ignore:
Timestamp:
2000-09-05T21:30:18+12:00 (24 years ago)
Author:
cs025
Message:

Properly creates and destroys the gssetup.exe executable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsinstaller/gsinstall.cpp

    r1498 r1502  
    6565    bool                updateProfiles();
    6666    bool                updateProgman();
     67    bool                updateSetupExe();
    6768    bool                installNetscape();
    6869    void                setDestination();
     
    525526  delete iniPath;
    526527
     528  return true;
     529}
     530
     531/**
     532 * Ensure that we've installed the very latest setup executable @ the destination/
     533 * greenstone folder
     534 */
     535bool GSInstall::updateSetupExe()
     536{ FilePath *destExePath;
     537  FilePath srcExeFile(*this->sourcePath, "gssetup.exe");
     538
     539    if (this->installExe)
     540    {   destExePath = this->destinationPath;
     541  }
     542  else
     543    {   destExePath = this->collectPath;
     544  }
     545    FilePath destExeFile(*destExePath, "gssetup.exe");
     546
     547  if (!CopyFile(srcExeFile.cString(), destExeFile.cString(), false))
     548  { return false;
     549  }
    527550  return true;
    528551}
     
    846869              install.updateRegistry();
    847870            install.updateProfiles();
     871          install.updateSetupExe();
    848872
    849873          // the log will need reopening (probably failed initially)
Note: See TracChangeset for help on using the changeset viewer.