norial
1st May 2003 10:33 UTC
how can I download and install zip-file
hi,
with the NSIS installer its easy to create a 'static' Setup. But it's possible to insert/install files from a website?
what i mean is:
Select option with the installer and then the installer download and install the requested files.
I found dialerdll.zip but how can I download files?
thanks
norial
Sunjammer
1st May 2003 10:42 UTC
Try using the NSISdl plugin.
norial
1st May 2003 10:51 UTC
thanks for the extrem fast answer. I found 2 plugins:
NSISdlSmooth.dll and NSISdl.dll.
NSISdlSmooth.dll is without documentation, but NSISdl.dll seems my friend but first a must study the readme ;-).
Are any examples available?
thank a lot
Sunjammer
1st May 2003 10:57 UTC
NSISdlSmooth I *think* is exactly the same but has a smooth progress bar instead of one made of squares... Ahha I just found the archive page for it here.
The example mentioned in this archive page claims to demonstrate NSISdl.
kichik
1st May 2003 11:10 UTC
NSISdlSmooth is an old version of NSISdl with smooth progress bar. To create a new NSISdlSmooth open NSISdl.dll in a resource editor such as Resource Hacker and add the PBS_SMOOTH style to the progress bar.
Yathosho
1st May 2003 11:11 UTC
i've been using this
Call ConnectInternet
NSISdl::download /TIMEOUT=30000 http://my.domain.net/my.zip "$TEMP\my.zip"
ZipDLL::extractall "$TEMP\my.zip" "$INSTDIR"
Delete "$TEMP\my.zip"
downloads and unzips the file. using different compression than zip will save you some bytes for the installer aswell, since ther ZipDLL is quite big. you have also the possibility to use UnTGZ or ExtractDLL
Sunjammer
1st May 2003 11:18 UTC
Originally posted by kichik
NSISdlSmooth is an old version of NSISdl with smooth progress bar.
I've added a warning to the NSISdlSmooth Archive page reflecting this, thanks KiCHiK.
deguix
1st May 2003 12:10 UTC
Isn't better to upload the new version of NSISdlSmooth to Archive than put a Warning? Because this below is easy to do:
Originally posted by kichik
To create a new NSISdlSmooth open NSISdl.dll in a resource editor such as Resource Hacker and add the PBS_SMOOTH style to the progress bar.
Sunjammer
1st May 2003 12:51 UTC
Yes but then as soon as NSISdl is updated again NSISdlSmooth will be out of date again and the warning will still apply. The ideal solution is for the smooth option to be added to the maintained NSISdl.