Trying to add FTP upload to my installer, I get Error Code #6.
Anyone know what I have incorrectly set up?
Sim
Printable View
Trying to add FTP upload to my installer, I get Error Code #6.
Anyone know what I have incorrectly set up?
Sim
Friedrich, could you please assist?
Sim Scherer
Hi Sim
I don't know what error #6 ii but I have never had problems with ftp uploads.
1: Make sure that [x] Use PASV mode is checked
2: try disabling your firewall of add your SB??.exe to the whitelist in your
AV/Firewall
3: check the settings you are using match what the ftp server expects.
JohnG
Sim,
> Friedrich, could you please assist?
What John said. It's a simple one-line FtpPutFile() WinINet API call that
uploads file(s). This API fails in your case. Perhaps the password to your
FTP server is incorrect (don't try to upload to a www address, you have to
upload to ftp.yada.com), or the firewall blocks it, or the destination
folder does not allow uploads (e.g. a typical upload location is
ftp.yada.com/puplic_html/yada), etc.
Error Code #6 is System Error Code 6 -> Invalid file handle. It does not
tell us what went wrong.
Friedrich
Yup, got all that now. Fixed!
Only problem remaining is that only the EXE gets transferred.
How can I get the HTM transferred as well?
Sim
Sim,
> Yup, got all that now. Fixed!
>
> Only problem remaining is that only the EXE gets transferred.
> How can I get the HTM transferred as well?
It only uploads the installation related files (e.g. setup.exe and .0000x
cluster files). It does not upload non-installer related files (e.g. .cvs
or .htm compiler build report files).
Friedrich
Hi Friedrich,
Can it be achieved by adding a "#ftp upload"?
Sim
Hi Sim,
>
> Can it be achieved by adding a "#ftp upload"?
>
Yes! Just set "Source File" to [OUTPUTDIR]\yada.htm and enable the "Process
after script compilation" option.
Friedrich
Great.
Where do I add #ftp upload code?
It needs to run after the HTM is created, but I cannot identify that in the
script.
Sim
Sim,
> Great.
>
> Where do I add #ftp upload code?
> It needs to run after the HTM is created, but I cannot identify that in
> the script.
You can add it wherever you want because it is executed after the setup.exe
compilation process (see attached screenshot).
Friedrich