Inetc Put issue
Greetings!
I'm a bit new to the NSIS product. I've been able to do some basic installers, but now I want to use an installer to upload a txt file to an ftp. I am attempting to use the inetc plugin. I'm getting a File Open Error message when attempting to use the Put command. Get will download from the ftp corrrectly. I can upload to this ftp in other programs with out issue. Can anyone help me figure out where I've gone wrong?
here is the code I've been using.
Function SendBack
ReadRegStr $0 HKLM "System\CurrentControlSet\Control\ComputerName\ActiveComputerName" "ComputerName"
ReadEnvStr $2 USERNAME
FileOpen $1 "$INSTDIR\$2 - ${PRODUCT_NAME}.txt" w
FileWrite $1 " Username : $2 Machine Name: $0 Install Complete for ${PRODUCT_NAME}"
FileClose $1
inetc::put /POPUP "" "ftp://XXX:YYY@###.###.###.###:####/" "$1"
Pop $3 # return value = exit code, "OK" if OK
MessageBox MB_OK "Download Status: $3"
FunctionEnd
Thanks!