Archive: how can I download and install zip-file


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


Try using the NSISdl plugin.


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


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.


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.


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


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.

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.

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.