|
@@ -7,10 +7,10 @@
|
|
; -For innosetup-latest.exe and MyProg-ExtraReadmes.7z: using Inno Setup
|
|
; -For innosetup-latest.exe and MyProg-ExtraReadmes.7z: using Inno Setup
|
|
; Signature Tool, the [ISSigKeys] section, and the AddWithISSigVerify support
|
|
; Signature Tool, the [ISSigKeys] section, and the AddWithISSigVerify support
|
|
; function
|
|
; function
|
|
-; -For iscrypt.dll: using a simple SHA256 check
|
|
|
|
|
|
+; -For iscrypt.dll: using a simple SHA-256 hash check
|
|
; Using the Inno Setup Signature Tool has the benefit that the script does not
|
|
; Using the Inno Setup Signature Tool has the benefit that the script does not
|
|
; need to be changed when the downloaded file changes, so any installers built
|
|
; need to be changed when the downloaded file changes, so any installers built
|
|
-; will also keep working
|
|
|
|
|
|
+; will also keep working (they are "evergreen")
|
|
|
|
|
|
[Setup]
|
|
[Setup]
|
|
AppName=My Program
|
|
AppName=My Program
|
|
@@ -38,10 +38,12 @@ Source: "Readme.txt"; DestDir: "{app}"; Flags: isreadme
|
|
; These files will be downloaded using [Files] only
|
|
; These files will be downloaded using [Files] only
|
|
Source: "https://jrsoftware.org/download.php/is.exe?dontcount=1"; DestName: "innosetup-latest.exe"; DestDir: "{app}"; \
|
|
Source: "https://jrsoftware.org/download.php/is.exe?dontcount=1"; DestName: "innosetup-latest.exe"; DestDir: "{app}"; \
|
|
ExternalSize: 7_000_000; Flags: external download ignoreversion issigverify
|
|
ExternalSize: 7_000_000; Flags: external download ignoreversion issigverify
|
|
|
|
+Source: "https://jrsoftware.org/download.php/iscrypt.dll?dontcount=1"; DestName: "ISCrypt.dll"; DestDir: "{app}"; \
|
|
|
|
+ Hash: "2f6294f9aa09f59a574b5dcd33be54e16b39377984f3d5658cda44950fa0f8fc"; \
|
|
|
|
+ ExternalSize: 2560; Flags: external download ignoreversion
|
|
; These files will be downloaded by [Code]. If you include flag issigverify here the file will be verified
|
|
; These files will be downloaded by [Code]. If you include flag issigverify here the file will be verified
|
|
; a second time while copying. Verification while copying is efficient, except for archives.
|
|
; a second time while copying. Verification while copying is efficient, except for archives.
|
|
Source: "{tmp}\MyProg-ExtraReadmes.7z"; DestDir: "{app}"; Flags: external extractarchive recursesubdirs ignoreversion
|
|
Source: "{tmp}\MyProg-ExtraReadmes.7z"; DestDir: "{app}"; Flags: external extractarchive recursesubdirs ignoreversion
|
|
-Source: "{tmp}\ISCrypt.dll"; DestDir: "{app}"; Flags: external ignoreversion
|
|
|
|
|
|
|
|
[Icons]
|
|
[Icons]
|
|
Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
|
|
Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"
|
|
@@ -75,9 +77,6 @@ begin
|
|
DownloadPage.AddWithISSigVerify(
|
|
DownloadPage.AddWithISSigVerify(
|
|
'https://jrsoftware.org/download.php/myprog-extrareadmes.7z', '',
|
|
'https://jrsoftware.org/download.php/myprog-extrareadmes.7z', '',
|
|
'MyProg-ExtraReadmes.7z', AllowedKeysRuntimeIDs);
|
|
'MyProg-ExtraReadmes.7z', AllowedKeysRuntimeIDs);
|
|
- DownloadPage.Add(
|
|
|
|
- 'https://jrsoftware.org/download.php/iscrypt.dll?dontcount=1',
|
|
|
|
- 'ISCrypt.dll', '2f6294f9aa09f59a574b5dcd33be54e16b39377984f3d5658cda44950fa0f8fc');
|
|
|
|
DownloadPage.Show;
|
|
DownloadPage.Show;
|
|
try
|
|
try
|
|
try
|
|
try
|