Resets the download flag for a remote file in the DwinsHs_DwonloadsList download queue. The local file will be deleted if it has been downloaded, then it will be re-downloaded when the DwinsHs_CurPageChanged procedure is executed (the Setup wizard moves to the pre-defined downloading wizard page).
You should use the procedure in the BeforeDownload callback function specified by the BeforeDownload parameter of the DwinsHs_CurPageChanged procedure.
#ifdef UNICODE // For UNICODE Inno Setup
function DwinsHs_ResetRemoteFile(Filename: string; FileSize: Int64): Boolean;
#else // For ANSI Inno Setup
function DwinsHs_ResetRemoteFile(Filename: string; FileSize: LongInt): Boolean;
#endif
Specifies the path and name of the local file the remote file will be saved as.
Specifies a new file size for the remote file in bytes. It will be used to caculate the download progress and remaining time. This avoids delays before the download begins because the script doesn't have to fetch the file size from the server.
Note, the file size will be fetched from the server if the parameter is set to FILESIZE_QUERY_SERVER (0) or FILESIZE_UNKNOWN (-1). And the file size will not be changed if the parameter is set to FILESIZE_KEEP_FORMER (-2).
Returns true if operation was successful, false otherwise.
The function is avaliable only when both DwinsHs_Use_Predefined_Downloading_WizardPage and DwinsHs_Use_ResetRemoteFile marcos are defined.
Copyright © 2001-2022, Han-soft Corporation. All rights reserved.