فهرست منبع

Prevent the examples from inflating the download count. Changed download.php for this.

Martijn Laan 1 سال پیش
والد
کامیت
25a06a5f6d
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 1 1
      Examples/CodeAutomation.iss
  2. 2 2
      Examples/CodeDownloadFiles.iss
  3. 2 2
      ISHelp/isxfunc.xml

+ 1 - 1
Examples/CodeAutomation.iss

@@ -293,7 +293,7 @@ begin
     Exit;
   
   { Download the Zip file }
-  DownloadTemporaryFile(ZipURL, ZipFileName, ZipSHA256, nil);
+  DownloadTemporaryFile(ZipURL + '?dontcount=1', ZipFileName, ZipSHA256, nil);
   ZipPath := ExpandConstant('{tmp}\' + ZipFileName);
 
   MsgBox('Downloaded the Zip file and saved it as ''' + ZipPath + '''.', mbInformation, mb_Ok);

+ 2 - 2
Examples/CodeDownloadFiles.iss

@@ -45,8 +45,8 @@ begin
   if CurPageID = wpReady then begin
     DownloadPage.Clear;
     // Use AddEx to specify a username and password
-    DownloadPage.Add('https://jrsoftware.org/download.php/is.exe', 'innosetup-latest.exe', '');
-    DownloadPage.Add('https://jrsoftware.org/download.php/iscrypt.dll', 'ISCrypt.dll', '2f6294f9aa09f59a574b5dcd33be54e16b39377984f3d5658cda44950fa0f8fc');
+    DownloadPage.Add('https://jrsoftware.org/download.php/is.exe?dontcount=1', 'innosetup-latest.exe', '');
+    DownloadPage.Add('https://jrsoftware.org/download.php/iscrypt.dll?dontcount=1', 'ISCrypt.dll', '2f6294f9aa09f59a574b5dcd33be54e16b39377984f3d5658cda44950fa0f8fc');
     DownloadPage.Show;
     try
       try

+ 2 - 2
ISHelp/isxfunc.xml

@@ -1785,8 +1785,8 @@ end;
 function InitializeSetup: Boolean;
 begin
   try
-    DownloadTemporaryFile('https://jrsoftware.org/download.php/is.exe', 'innosetup-latest.exe', '', @OnDownloadProgress);
-    DownloadTemporaryFile('https://jrsoftware.org/download.php/iscrypt.dll', 'ISCrypt.dll', '2f6294f9aa09f59a574b5dcd33be54e16b39377984f3d5658cda44950fa0f8fc', @OnDownloadProgress);
+    DownloadTemporaryFile('https://jrsoftware.org/download.php/is.exe?dontcount=1', 'innosetup-latest.exe', '', @OnDownloadProgress);
+    DownloadTemporaryFile('https://jrsoftware.org/download.php/iscrypt.dll?dontcount=1', 'ISCrypt.dll', '2f6294f9aa09f59a574b5dcd33be54e16b39377984f3d5658cda44950fa0f8fc', @OnDownloadProgress);
     Result := True;
   except
     Log(GetExceptionMessage);