Prev Previous Post   Next Post Next
Old 7th June 2006, 02:43   #1
karabey
Junior Member
 
Join Date: May 2006
Posts: 13
InetLoad + Auth

Hi,

I am just working on Inetload with Auth Plugins. Build already something but i have still problem with Authentication

code:
;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?
karabey is offline   Reply With Quote
 
Go Back   Winamp & Shoutcast 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