Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th September 2005, 08:54   #1
lucasx24
Junior Member
 
Join Date: Sep 2005
Location: london
Posts: 13
compare string as filename on local disk with filename on remote http address ?

is it possible to compare filename on local hard disk with name of the file on remote http server ? if yes how to do this by easiest way ?

any help appreciated...
lucasx24 is offline   Reply With Quote
Old 7th September 2005, 11:27   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
http://nsis.sourceforge.net/wiki/Get...tory_path_part

-Stu
Afrow UK is offline   Reply With Quote
Old 7th September 2005, 12:50   #3
lucasx24
Junior Member
 
Join Date: Sep 2005
Location: london
Posts: 13
thx afrow but is it possible using InetLoad Plugin or any other way to check few files names ie.
we have 3 versions of install

http://domain.com/anydir/app_v4.01.exe
http://domain.com/anydir/app_v4.04.exe
http://domain.com/anydir/app_v4.10.exe

and how to check without downloading these files which version is the newest one ? and then download this newest version...

any help appreciated...
lucasx24 is offline   Reply With Quote
Old 7th September 2005, 12:59   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Try Joelito's Internet plugin:
http://plugins.joelito.net/

I've tried it and to be honest, I had a few strange issues with it (stack problems) but you can use it to check if a file exists. It isn't possible to get a list of files in a remote (Internet) folder though.

A much better solution would be to include a plain text file on your server with the latest download URL in it.
You download the text file with InetLoad to perhaps $PLUGINSDIR and read from it with FileOpen and FileRead (and FileClose).

-Stu
Afrow UK 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