InetLoad + Auth
Hi,
I am just working on Inetload with Auth Plugins. Build already something but i have still problem with Authentication
;Installer Sections
Section "seTool3 Update"
; /TITLE - dialog caption, "Proxy authorization" default
; /1LINE - to use instead of "Login" default
; /1LINE - to use instead of "Password" default
; /LOGIN - login string, empty field default
# auth::Ask /TITLE "http://www.mysite.at/file.rar" /1LINE "My Login" /2LINE "My Password" /LOGIN ""
auth::Ask
Pop $0 ; OK or Error string
StrCmp $0 "OK" ISOK
MessageBox MB_OK "User pressed Cancel"
Abort
ISOK:
Pop $0 ; Login field string
Pop $1 ; Password field string
MessageBox MB_OK "Login=$0 Password=$1"
InetLoad::load "http://www.mysite.at/file.rar" "$EXEDIR\file.rar"
Pop $R0 ;Get the return value
StrCmp $R0 "success" +3
MessageBox MB_OK "Download failed: $R0"
Quit
nsisunz::UnzipToLog "$EXEDIR\file.rar" "$INSTDIR"
Pop $R0
StrCmp $R0 "success" +2
DetailPrint "$R0" ;print error message to log
SectionEnd
What am i doing wrong?