|
@@ -197,10 +197,10 @@ type
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
procedure Initialize; override;
|
|
procedure Initialize; override;
|
|
function Add(const Url, BaseName, RequiredSHA256OfFile: String): Integer;
|
|
function Add(const Url, BaseName, RequiredSHA256OfFile: String): Integer;
|
|
- function AddWithISSigVerify(const Url, IssigUrl, BaseName: String;
|
|
|
|
|
|
+ function AddWithISSigVerify(const Url, ISSigUrl, BaseName: String;
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
function AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
|
|
function AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
|
|
- function AddExWithISSigVerify(const Url, IssigUrl, BaseName, UserName, Password: String;
|
|
|
|
|
|
+ function AddExWithISSigVerify(const Url, ISSigUrl, BaseName, UserName, Password: String;
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
procedure Clear;
|
|
procedure Clear;
|
|
function Download: Int64;
|
|
function Download: Int64;
|
|
@@ -1099,10 +1099,10 @@ begin
|
|
Result := DoAdd(Url, BaseName, RequiredSHA256OfFile);
|
|
Result := DoAdd(Url, BaseName, RequiredSHA256OfFile);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function TDownloadWizardPage.AddWithISSigVerify(const Url, IssigUrl, BaseName: String;
|
|
|
|
|
|
+function TDownloadWizardPage.AddWithISSigVerify(const Url, ISSigUrl, BaseName: String;
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
begin
|
|
begin
|
|
- Result := AddExWithISSigVerify(Url, IssigUrl, BaseName, '', '', AllowedKeysRuntimeIDs);
|
|
|
|
|
|
+ Result := AddExWithISSigVerify(Url, ISSigUrl, BaseName, '', '', AllowedKeysRuntimeIDs);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TDownloadWizardPage.AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
|
|
function TDownloadWizardPage.AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
|
|
@@ -1110,12 +1110,12 @@ begin
|
|
Result := DoAdd(Url, BaseName, RequiredSHA256OfFile, UserName, Password);
|
|
Result := DoAdd(Url, BaseName, RequiredSHA256OfFile, UserName, Password);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function TDownloadWizardPage.AddExWithISSigVerify(const Url, IssigUrl, BaseName, UserName,
|
|
|
|
|
|
+function TDownloadWizardPage.AddExWithISSigVerify(const Url, ISSigUrl, BaseName, UserName,
|
|
Password: String; const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
Password: String; const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
begin
|
|
begin
|
|
{ Also see Setup.ScriptFunc DownloadTemporaryFileWithISSigVerify }
|
|
{ Also see Setup.ScriptFunc DownloadTemporaryFileWithISSigVerify }
|
|
const ISSigAllowedKeys = ConvertAllowedKeysRuntimeIDsToISSigAllowedKeys(AllowedKeysRuntimeIDs);
|
|
const ISSigAllowedKeys = ConvertAllowedKeysRuntimeIDsToISSigAllowedKeys(AllowedKeysRuntimeIDs);
|
|
- DoAdd(IssigUrl, BaseName + ISSigExt, '', UserName, Password, False, '');
|
|
|
|
|
|
+ DoAdd(GetISSigUrl(Url, ISSigUrl), BaseName + ISSigExt, '', UserName, Password, False, '');
|
|
Result := DoAdd(Url, BaseName, '', UserName, Password, True, ISSigAllowedKeys);
|
|
Result := DoAdd(Url, BaseName, '', UserName, Password, True, ISSigAllowedKeys);
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -1131,11 +1131,11 @@ begin
|
|
Result := 0;
|
|
Result := 0;
|
|
for var F in FFiles do begin
|
|
for var F in FFiles do begin
|
|
{ Don't need to set DownloadTemporaryFileOrExtractArchiveProcessMessages before downloading since we already process messages ourselves }
|
|
{ Don't need to set DownloadTemporaryFileOrExtractArchiveProcessMessages before downloading since we already process messages ourselves }
|
|
- SetDownloadCredentials(F.UserName, F.Password);
|
|
|
|
|
|
+ SetDownloadTemporaryFileCredentials(F.UserName, F.Password);
|
|
Result := Result + DownloadTemporaryFile(F.Url, F.BaseName, F.RequiredSHA256OfFile,
|
|
Result := Result + DownloadTemporaryFile(F.Url, F.BaseName, F.RequiredSHA256OfFile,
|
|
F.ISSigVerify, F.ISSigAllowedKeys, InternalOnDownloadProgress);
|
|
F.ISSigVerify, F.ISSigAllowedKeys, InternalOnDownloadProgress);
|
|
end;
|
|
end;
|
|
- SetDownloadCredentials('', '');
|
|
|
|
|
|
+ SetDownloadTemporaryFileCredentials('', '');
|
|
end;
|
|
end;
|
|
|
|
|
|
{--- Extraction ---}
|
|
{--- Extraction ---}
|