referring a previous post of mine (Ftp get file doesn't work under One-click install) I'm trying to go round the problem playing with other FtpGetFileA flags like:
#define INTERNET_FLAG_NEED_FILE 0x00000010
// need a file for this request
#define INTERNET_FLAG_RESYNCHRONIZE 0x00000800
// asking wininet to update an item if it is newer
#define INTERNET_FLAG_RELOAD 0x80000000
// retrieve the original item
That is:
Code Sample |
FtpGetFileA(hFtp, sRemoteFileName, sLocalFileName, bFailIfExists, FILE_ATTRIBUTE_NORMAL, FTP_TRANSFER_TYPE_BINARY, 0) will become (for example): FtpGetFileA(hFtp, sRemoteFileName, sLocalFileName, bFailIfExists, FILE_ATTRIBUTE_NORMAL, (FTP_TRANSFER_TYPE_BINARY | INTERNET_FLAG_RELOAD), 0) |
It doesn't work because INTERNET_FLAG_RELOAD = 0x80000000 = 2.147.483.648 (2G)
InstallShield int = 4byte signed = (-2.147.483.648 =< n =< +2.147.483.647)
So that 0x80000000 = -2.147.483.648
Is there a way to go round this troublesome problem?
I know managing extra-long number in InstallShield script is a minor problem but I think it could repeat in the future.
Thanks.
Ciao, Giuseppe