Re: Replacing EXE file

From: Cruxy (cruxyATcruxyDOTnet)
Date: 01/20/04


Date: Tue, 20 Jan 2004 09:17:38 +0100


> If it exists, I replace my local file with that one, but the problem
> is that on some machines, it replaces and restart the application but
> if verifies agains and think the file is newer again, replace it,
> restart again, replace it and again and again.

The problem is the check for FileDate only. On Copy the FileDate on
local machine may change to current time - always different.

- I'd write the filedate of the exe on the server to a local .ini file
or registry after update. if the version on server is newer then the
version in ini copy and restart.

- A safer method would be to read out the versioninfo of the exe on
server and verify it's newer then the local one. The only thing you
need is to include a versioninfo with your exe incrementing after each
build (see Delphi project options).



Relevant Pages

  • Re: Computer missing updates
    ... Thanks for the explanation Robbin. ... It checks Active Directory every 5 minutes and synchronizes the machines with the group membership in WSUS (moves clients to client group, servers to server group). ... So don't forget to restart the Windows SBS Manager service. ...
    (microsoft.public.windows.server.sbs)
  • Re: lower restart time
    ... machines with hardware that is RAID or SCSI or both can have their own ... Microsoft MVP - Windows NT Server ... "Lucian" wrote in message ... > My server takes about fifteen minutes to restart. ...
    (microsoft.public.windows.server.general)
  • Re: Computer missing updates
    ... As supplement of explanation to the Summary Report that monitoring WSUS, it's called "Windows SBS Manager". ... It checks Active Directory every 5 minutes and synchronizes the machines with the group membership in WSUS (moves clients to client group, servers to server group). ... So don't forget to restart the Windows SBS Manager service. ...
    (microsoft.public.windows.server.sbs)
  • Re: 2 Gig Print Spooler process
    ... other machines to see if it will konk out the server there, ... I really stinks to have to restart the spooler and to restart the ... The print spooler service should not delete the files in the spool folder ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Server Lock Up
    ... But a comment on one of my machines that ... > We have been having a problem with our main network server locking up. ... > button and restart. ... I am getting no events in logs that point to any ...
    (microsoft.public.win2000.general)