DwinsHs_ResetRemoteFile function

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.

Declaration:

#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

Parameters:

Return:

Returns true if operation was successful, false otherwise.

Note:

The function is avaliable only when both DwinsHs_Use_Predefined_Downloading_WizardPage and DwinsHs_Use_ResetRemoteFile marcos are defined.