Skip to content
⌘ NSIS Forum Archive

Download from URL

8 posts

VegetaSan#

Download from URL

Could somebody please write down .. how I can download from a url?

URL = http://www.zidev.com/kok.exe
(Doesnt exists)

Modern UI

I know the code for the Classic installer but it doesnt work for a MUI
Joost Verburg#
Downloading has nothing to do with a user interface. The code is identical, see the NSISdl examples.
VegetaSan#
the code doesnt work anymore ... but It used to


StrCpy $2 "$PROGRAMFILES\a-S Codec Pack\120104\MatrixMixer030B.exe"
NSISdl::download http://umn.dl.sourceforge.net/source...ixer_0_30b.exe $2
Pop $0
What's wrong about this ?
VegetaSan#
sorry I allready got it



StrCpy $2 "$PROGRAMFILES\kaas.zip"
NSISdl::download http://forums.winamp.com/attachment....postid=1296734 $2
Pop $0
VegetaSan#
And how can I look for a file ... on the internet if the file exists

For example :



I want to look if this file exist

How ?
VegetaSan#
I know but what I wanted is this



Banner::show /NOUNLOAD "Connecting to Server"
again:
IntOp $0 $0 + 1
Sleep 1
StrCmp $0 2000 0 again

download... iets !

StrCpy $2 "$PROGRAMFILES\mplayerc.exe"
NSISdl::download http://www.subaru.demon.nl/mplayercME9895/mplayerc.exe $2
Pop $0

Banner::destroy

and if that file exists then it would display a messegebox and say .. do you really want to download?
Joost Verburg#
It's easier to ask before downloading. If you really want to know whether a file exists and don't want to download it immidiately you will have to modify the plug-in source.