172 Commits

Author SHA1 Message Date
Martijn Laan
47aa2de357
Update comment. 2025-06-12 17:57:14 +02:00
Martijn Laan
2d0ec7b9e5
Add support for dowload+extractarchives in a simple and clean way 👍
For such entries the archive is downloaded to {tmp}\_isetup\<randomdir>\<destname> using a TDownloadWizardPage, as the first step of PrepareToInstall. Supports verification.

On success the entries' SourceFilename is updated to the temp file, the download flag is removed and also DestName and verification. Áfter that the rest (PreviousInstallCompleted, RegisterResourcesWithRestartManager, and installation) works normally and required no changes.

On error the problem is displayed by the ready page. Also didn't require changes, except for an extract on BaseName display.

Todo:
-Rename CodeDownloadFiles.iss since there's no [Code] in it anymore.
-Offer Abort/Retry when a download fails? Or even Ignore somehow?
-Let the user choose if it should show BaseNames or URLs while downloading with a new directive? Both for archives and files.
-Document
2025-06-12 17:54:36 +02:00
Martijn Laan
0785ee8b40
Merge branch 'main' into files-hash 2025-06-12 12:53:40 +02:00
Martijn Laan
6e6fabf59a
Cleanup the other waya round. Reverts a375816c336e679a2bcda47fbd7a42c6f3fb7d4e. 2025-06-12 12:53:32 +02:00
Martijn Laan
3836bc1eb8
Update whatsnew, the example and the highlighter. 2025-06-12 11:04:55 +02:00
Martijn Laan
b0020d0f9f
Use digit separators. 2025-06-08 22:22:21 +02:00
Martijn Laan
4e8c896232
Should work on the example as well. Keep the original as CodeDownloadFiles2.iss. Should add a DownloadRequiredSha256 parameter for the ISCrypt.dll example + should remove the archive from it for now.
So todo:
-Add DownloadRequiredSha256 parameter. (Or DownloadRequiredSHA256OfFile?)
-Update whatsnew.
-Update CodeDownloadFiles references and add new ones.
-Make a new fresh messages commit.
-Test username/password support.
2025-06-08 21:31:04 +02:00
Martijn Laan
12357a3acf
Allow empty ISSigUrl for automatic handling. 2025-06-08 17:17:35 +02:00
Martijn Laan
0daa983351
Get rid of CodeDownloadFiles2.iss again. 2025-06-07 09:15:32 +02:00
Martijn Laan
a119d160e5
Merge branch 'main' into files-extractarchive 2025-06-07 09:03:56 +02:00
Martijn Laan
72a5c00108
Cleanup. 2025-06-07 08:58:43 +02:00
Martijn Laan
9004935fff
Update. Not sure yet what to do with CodeDownloadFiles.iss. Keep ISSigKeys out of it? Or keep archive extraction out of it? Or revert back to just one example now that the archive extraction is so simple? 2025-06-04 20:44:40 +02:00
Martijn Laan
b32db4ad33
Various improvements, some not really related to branch. 2025-05-31 15:32:05 +02:00
Martijn Laan
cae819467e
Prepare some documentation. Doesn't mean it's done. Also should actually enable Excludes support, which is easy. 2025-05-30 17:25:48 +02:00
Martijn Laan
ccdff74ac7
Update example.
Measured size increase of Setup compared to ArchiveExtraction=basic, with default compression:

enhanced/nopassword = +101 kb
enhanced = +124 kb
full = +614 kb
2025-05-24 14:15:43 +02:00
Martijn Laan
da62933cdf
Fix typo. 2025-05-23 13:38:44 +02:00
Martijn Laan
be31e8a30f
Tweak example and fix AddEx. 2025-05-22 12:44:28 +02:00
Martijn Laan
28cd78499f
Remove the archive stuff from CodeDownloadFiles.iss and add CodeDownloadFiles2.iss instead. 2025-05-22 10:49:27 +02:00
Martijn Laan
c59df95b8e
Remove the callbacks which make the assumption they will be called only once with Progress = ProgressMax but this isn't necessarily true for the extraction one and don't want to add extra code to make it true atm. 2025-05-22 10:33:31 +02:00
Martijn Laan
8c9f074319
Add ExtractArchive support to TExtractionWizardPage. Todo: add AddEx to specify password. 2025-05-22 10:31:24 +02:00
Martijn Laan
eff9de297d
Cleanup new whitespace and fix typo. 2025-05-12 17:03:26 +02:00
Martijn Laan
e2d0df6a52
Update doc/whatsnew/example. 2025-05-09 08:03:43 +02:00
Martijn Laan
72c7ab89a9
Show how to verify a downloaded archive, by including .issig files in the archive. Verifying the archive itself before extraction doesn't seem to be needed. 2025-05-08 20:04:18 +02:00
Martijn Laan
e37ec0e95a
Sign and verify the other DLLs and EXEs in the repo and which are picked up by setup.iss. 2025-05-01 20:11:59 +02:00
Martijn Laan
292179d6fa
Cleanup example [ISSigKeys] sections. 2025-04-30 17:42:01 +02:00
Martijn Laan
8ccedcf829
Show how to validate downloads using [ISSigKeys]. This makes it possible for it to check the is.exe download which wasn't possible before. Very nice. 2025-04-28 17:51:22 +02:00
Martijn Laan
065fa66f82
Resign recently signed files with new certificate. 2025-03-11 18:55:46 +01:00
Jordan Russell
4b05dce297
Don't set unnecessary SupportedTypes key on file associations.
https://groups.google.com/g/innosetup/c/r6-_em0DGNs/m/KE7p9uqhBAAJ
2024-12-31 02:51:11 -06:00
Martijn Laan
58b27f351b
Cleanup remaining MD5, SHA1 and Hash unit use. 2024-09-26 11:39:48 +02:00
Martijn Laan
711fb511b5
Improve CreateInputDirPage example. Did not change to one in AllPagesExample.iss because it's different. 2024-08-14 09:04:24 +02:00
Martijn Laan
8aa6443f91
Further cleanup. 2024-08-02 08:34:32 +02:00
Martijn Laan
a48343070a
Cleanup. 2024-08-01 20:09:16 +02:00
Martijn Laan
89080dfe78
Cleanup. 2024-07-31 08:54:43 +02:00
Martijn Laan
70fcaa3f77
Set target names. 2024-07-30 21:10:27 +02:00
Martijn Laan
d835e5755a
Missed a few earlier: Clean up the few remaining $jrsoftware$ tags which were used in the days of CVS. 2024-07-09 19:24:49 +02:00
John Stevenson
8472404ce9 Fix error when logging process output 2024-06-26 20:44:35 +01:00
Martijn Laan
efee61b005
Remove BOM and add example check. 2024-06-18 21:08:40 +02:00
Martijn Laan
131bd5dbe6
😑 2024-06-09 07:39:55 +02:00
Martijn Laan
8386f17c28
Cleanup. 2024-06-06 13:31:22 +02:00
Martijn Laan
c7745fc3f8
Improve SetTimer example. 2024-05-26 15:32:49 +02:00
Martijn Laan
2a4cce0e75
Cleanup SW_SHOW vs SW_SHOWNORMAL. 2024-05-26 14:54:59 +02:00
Martijn Laan
a455c8d44e
TDownloadPage: Add new ShowBaseNameInsteadOfUrl property. Also cleanup AbortedByUser property. 2024-05-22 11:10:13 +02:00
Martijn Laan
25a06a5f6d
Prevent the examples from inflating the download count. Changed download.php for this. 2024-05-22 10:34:19 +02:00
Martijn Laan
8bc5d8bd9b
Add example which downloads and unzips a Zip file to the CodeAutomation.iss example script. Uses https://learn.microsoft.com/en-us/windows/win32/shell/shell-namespace (a zip file is also a folder) and is based on https://stackoverflow.com/a/40706549/301485. 2024-05-22 09:53:12 +02:00
Martijn Laan
68e60ca0d2
Use CREATE_NO_WINDOW if logging is enabled in all 3 cases to hide console programs but not GUI programs. Because of this also don't force SW_HIDE in ISPP ExecAndGetFirstLine. SignTool commands already didn't do SW_HIDE.
SignToolRunMinimized is now no longer needed? It now only applies to GUI sign tools and why would you want to run those minimized?
2024-05-19 08:55:40 +02:00
Martijn Laan
56fd3a626e
Update for rename. 2024-05-12 08:23:39 +02:00
Martijn Laan
c17084282f
Various updates. 2024-05-12 08:05:39 +02:00
Martijn Laan
bbfea1537f
Add Powershell.iss example script demonstrating calling Powershell at compile time and at run time. Todo: doc & whatsnew & install. Also a LogFmt would be nice. 2024-05-11 20:27:01 +02:00
Martijn Laan
6bc0f675e1
Simplify. 2024-05-10 20:18:55 +02:00
Martijn Laan
242cf579dc
Add TLinkLabel examples and also an example for AdjustLabelHeight. Undo the AdjustLabelHeight AutoSize change from previous commit. 2024-05-10 20:05:00 +02:00