Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th February 2004, 01:10   #1
rjstephens
Junior Member
 
Join Date: Jan 2004
Posts: 44
using NSISdl to get a list of files to download

HI
I am building an auto-update engine for my software in NSIS. Is it possible to download a list of files to download using NSISdl , and then download and replace those files one by one? I have searched the forums and the archive, and have not found a way to do this.
rjstephens is offline   Reply With Quote
Old 15th February 2004, 01:36   #2
deguix
Major Dude
 
deguix's Avatar
 
Join Date: Dec 2002
Location: Everett - MA, USA
Posts: 1,351
Send a message via ICQ to deguix
Use NSISdl::download, and after the Rename command.

My Wiki Pages

Working now on:
New projects. (language: any)
deguix is offline   Reply With Quote
Old 15th February 2004, 01:43   #3
rjstephens
Junior Member
 
Join Date: Jan 2004
Posts: 44
I'm afraid I don't understand what your saying. If you could point me to an example script, please do so. I need a way to download a list of files, open that list, and then download the files in that list one by one.

I would just download the main EXE, but what if I want to add more new stuff than the main EXE? What if a new feature I added requires a new dll or something?

The only thing I can think of is to download and run an installer. But I'd rather be able to download a list of files, like I said at the top of this post.
rjstephens is offline   Reply With Quote
Old 15th February 2004, 10:54   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
There are several examples of file reading available in the NSIS Archive.
Joost Verburg is offline   Reply With Quote
Old 15th February 2004, 11:12   #5
rjstephens
Junior Member
 
Join Date: Jan 2004
Posts: 44
I was thinking more along the lines of "download a nsis script, and then run the instructions in the script". Is this possible?
rjstephens is offline   Reply With Quote
Old 15th February 2004, 11:53   #6
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
You can't evaluate script code on run-time. Why not use a textfile with files to download?
Joost Verburg is offline   Reply With Quote
Old 15th February 2004, 12:01   #7
rjstephens
Junior Member
 
Join Date: Jan 2004
Posts: 44
because I might want to register a new dll or something, and it might not all be going in the same folder, etc. etc.

I think the way to go on this one is to download an installer, and run the downloaded installer. Only thing is the downloaded installer might want to replace the updater. Is there a way to get the installer to copy itself to a temp folder before running itself, in the same way that the uninstaller does?
rjstephens is offline   Reply With Quote
Old 15th February 2004, 12:07   #8
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Sure. For an example see the NSIS Update script (available in CVS, Contrib\NSIS Update).
Joost Verburg is offline   Reply With Quote
Old 15th February 2004, 12:17   #9
rjstephens
Junior Member
 
Join Date: Jan 2004
Posts: 44
thanks for that. I'll look at it in the morning. It's past 11pm and i'm tired.
rjstephens is offline   Reply With Quote
Reply
Go Back   Winamp 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