rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: MarkV on December 06, 2006, 07:15:47 PM

Title: Update check and ISO date
Post by: MarkV on December 06, 2006, 07:15:47 PM
Quote from: HFS log
2006-12-06 19:31:13 Server start
06.12.2006 19:32:31 Check update: no new version

Update check doesn't use ISO date!


MarkV
Title: Re: Update check and ISO date
Post by: rejetto on December 08, 2006, 04:46:37 AM
hmm, i tested it and wasn't able to reproduce the bug. can you?

Code: [Select]
2006-12-08 5.44.11 Check update: new version found

in the INI, you can remove last-update-check to reset the timer.
Title: Re: Update check and ISO date
Post by: maverick on December 08, 2006, 09:01:23 AM
Quote
from maverick's HFS log:
2006-12-08 2:53:15 AM Server start
2006-12-08 2:53:40 AM Check update: no new version

I tested it here too.  I can't reproduce either.  Working as it should.
Title: Re: Update check and ISO date
Post by: MarkV on December 11, 2006, 12:09:04 AM
Quote from: HFS log
2006-12-11 00:55:12 Server start
2006-12-11 00:56:19 Check update: no new version

Problem resolved itself. My hfs.ini was still from build #061 and not updated. Re-saved settings and now works fine.

Though I may add...

The update check should occour daily, right? I never save my settings automatically, neither at shutdown nor timed. Thus the Last_update_check value never gets updated, either.

You could write that value to an extra update.ini file immediately after update check, regardless of the 'Save settings' chosen or not. Or you could always write this value to the registry.

Topic can be closed as original problem has been resolved, cheers!

MarkV
Title: Re: Update check and ISO date
Post by: rejetto on December 11, 2006, 12:52:17 PM
hmm, you are right, i will think of it
Title: Re: Update check and ISO date
Post by: rejetto on December 13, 2006, 04:50:53 AM
ok, i found a solution.

upon checking for updates, HFS saves a temp file (in the temp system folder) for remembering the time.
when options are saved, this value is included in the options, so the temp file is deleted.
if options are not saved, the file remains, and is "loaded" next time HFS starts.

"uninstall" and "clear options", both delete this temp file.

this method is included since build #068.
this build is released as unstable at www.rejetto.com/temp/hfs068.exe
should be declared stable after 5 days.
trying this new way after recent complaints.
Title: Re: Update check and ISO date
Post by: MarkV on December 13, 2006, 07:08:05 AM
OK, I'm unlocking this topic again. :)

Quote from: rejetto
...HFS saves a temp file (in the temp system folder)...

Do you mean the folder defined by 'TEMP'? That would make no sense since I clean this folder regularly. Couldn't this file be in HFS program directory?

MarkV
Title: Re: Update check and ISO date
Post by: rejetto on December 13, 2006, 02:56:57 PM
hmm, i could save in the same folder of HFS, and if it is not writable, save in the TEMP folder.
how this?
Title: Re: Update check and ISO date
Post by: ledufe on December 13, 2006, 11:41:41 PM
i agree, as the hfs use some default ports, it could use some default folders, it is a good idea rejetto...
Title: Re: Update check and ISO date
Post by: MarkV on December 14, 2006, 04:05:01 PM
hmm, i could save in the same folder of HFS, and if it is not writable, save in the TEMP folder.
how this?

Perfect.  ;D


MarkV
Title: Re: Update check and ISO date
Post by: rejetto on December 14, 2006, 04:11:57 PM
i'm working on another fix
will publish a build soon
Title: Re: Update check and ISO date
Post by: rejetto on December 14, 2006, 09:22:08 PM
here is the new build
www.rejetto.com/forum/?topic=4013