Old 4th May 2006, 18:35   #1
Database
Junior Member
 
Database's Avatar
 
Join Date: May 2006
Location: Suffolk, England
Posts: 10
Send a message via Yahoo to Database
Checking Modified tag?

I'm ceating an installer that downloads updated files from a webserver and automaticially installs them, using NSISdl.

How can I tell my installer to heck the Modified tag on the zips in the fileserver, and then check them against some sort of log stored on the hard-drive? (I extract then delete the files after I download them.) And how can I log the Modified tag of the zips?
Database is offline   Reply With Quote
Old 6th May 2006, 10:26   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It can't be done with NSISdl. Maybe InetLoad can do it. If not, you'll have to use a custom plug-in or external application. You can also try one of the Internet* API functions using the System plug-in.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 6th May 2006, 10:36   #3
Database
Junior Member
 
Database's Avatar
 
Join Date: May 2006
Location: Suffolk, England
Posts: 10
Send a message via Yahoo to Database
Thanks for the reply! I'll go try now.
Database is offline   Reply With Quote
Old 14th May 2006, 10:32   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Looks like it's time to add HEAD request to InetLoad (for Last-modified: header and connection test), but after vacations I am overloaded with current tasks, later I'll do this.
Takhir is offline   Reply With Quote
Old 24th June 2006, 09:07   #5
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Inetc now supports HEAD request. May be good for connection check as well. Total headers size (temporary) limited with 1 kB (NSIS string size), raw headers go to target local file.
Takhir is offline   Reply With Quote
Old 25th June 2006, 09:27   #6
Database
Junior Member
 
Database's Avatar
 
Join Date: May 2006
Location: Suffolk, England
Posts: 10
Send a message via Yahoo to Database
I think I'll worship you alongside Afrow UK as NSIS God :P

Thanks very muchly!

-Database
Database is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump