Re: Replacing EXE file
From: Cruxy (cruxyATcruxyDOTnet)
Date: 01/20/04
- Next message: Martin James: "Re: Top generic pascal tips required"
- Previous message: Anders Isaksson: "Re: Top generic pascal tips required"
- In reply to: Marcos Pegoraro: "Replacing EXE file"
- Next in thread: Marcos Pegoraro: "Re: Replacing EXE file"
- Reply: Marcos Pegoraro: "Re: Replacing EXE file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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).
- Next message: Martin James: "Re: Top generic pascal tips required"
- Previous message: Anders Isaksson: "Re: Top generic pascal tips required"
- In reply to: Marcos Pegoraro: "Replacing EXE file"
- Next in thread: Marcos Pegoraro: "Re: Replacing EXE file"
- Reply: Marcos Pegoraro: "Re: Replacing EXE file"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|