Martijn Laan
46252ab541
Cleanup.
2025-06-12 10:51:25 +02:00
Martijn Laan
a73d49d52e
Cleanup by adding TSetupFileVerification.
...
Still not tested. Also todo: doc & new clean messages commit.
2025-06-12 10:29:31 +02:00
Martijn Laan
41e4b363cd
Add SHA256 verification in all places where it can do ISSig verification, using new [Files] parameter Hash.
...
Didn't test anything yet. Want to do a small refactor first.
2025-06-12 09:31:14 +02:00
Martijn Laan
487b78d6dc
Cleanup.
2025-06-11 20:46:41 +02:00
Martijn Laan
8e6d25739d
SetDownloadCredentials cleanup.
2025-06-08 18:33:39 +02:00
Martijn Laan
12357a3acf
Allow empty ISSigUrl for automatic handling.
2025-06-08 17:17:35 +02:00
Martijn Laan
369ea1627a
Cleanup IssigUrl->ISSigUrl.
2025-06-08 16:59:01 +02:00
Martijn Laan
7869c2fb60
Revert "Setup: add and use missing ISSigVerifySignatureRedir.".
2025-06-08 09:55:37 +02:00
Martijn Laan
95995123dd
Add DownloadTemporaryFileWithISSigVerify + doc tweaks.
2025-06-07 16:15:36 +02:00
Martijn Laan
abfc87cb80
Setup: add and use missing ISSigVerifySignatureRedir.
2025-06-07 14:55:31 +02:00
Martijn Laan
01dc41cb81
Actually, do move Extract(7Zip)ArchiveRedir's outer exception handling up one level. Does not add extra duplicate code and still keeps it as 6.4.3.
2025-06-06 20:11:14 +02:00
Martijn Laan
6733dc7803
Add TDownloadWizardPage support class functions AddWithISSigVerify and AddExWithISSigVerify. Todo: doc & update CodeDownloadFiles2.iss. Also doc something to prevent people from doing issigverify twice on a downloaded archive.
...
Could not use array of string in these new functions and had to use TStringList. For consistency changed support function ISSigVerify to use TStringList as well.
Also, didn't need this in the end but kept it anyway: make TDownloadWizardPage's and TExtractionWizardPage's Add(Ex) a function returning the index of the added item, like all other adds.
2025-06-04 18:01:18 +02:00
Martijn Laan
a801fc579b
Make [Code]'s ISSigVerify use Setup.Install's DoISSigVerify (which is new on this branch) to remove duplicate code. Also add DoISSigVerify support to Setup.Install's DownloadTemporaryFile, not yet used.
2025-06-04 16:24:16 +02:00
Martijn Laan
ad8b238d0d
Add KeepOpen parameter to TrustFunc's CheckFileTrust, as of yet unused. Also add comments.
2025-05-29 17:07:57 +02:00
Martijn Laan
f770e48db8
Finishing touches.
2025-05-28 20:34:25 +02:00
Martijn Laan
a991f57982
Unit names cleanup.
2025-05-24 14:24:23 +02:00
Martijn Laan
6218a86f54
Mark Extract7ZipArchive as obsolete/renamed. If it's called anyway and a 7-Zip DLL is available, still use the DLL version.
2025-05-24 14:11:35 +02:00
Martijn Laan
0d1c4dcdc6
Add [Setup] section directive ArchiveExtraction. Removes the need for the script to handle inclusion/extraction/loading.
2025-05-24 13:37:16 +02:00
Martijn Laan
a28a2f3366
Merge branch 'main' into 7zdll
2025-05-23 10:58:01 +02:00
Martijn Laan
56bbf40579
Add [ISSigKeys] RuntimeID, remove [Code] ISSigLoadTextFromFile.
2025-05-22 16:39:56 +02:00
Martijn Laan
9f4ec000ec
Add TExtractionWizardPage.AddEx. Todo: test & doc. Also some other minor tweaks.
...
Left the lack of password support as an internal implementation detail of Extract7ZipArchiveRedir.
2025-05-22 12:10:32 +02:00
Martijn Laan
0d44552d5c
Merge branch 'main' into 7zdll
2025-05-20 13:56:20 +02:00
Martijn Laan
028432c711
Revert adding Redir suffixes + TRedir<T>.
2025-05-20 13:35:14 +02:00
Martijn Laan
70c5323a61
Merge branch 'main' into 7zdll
2025-05-19 20:42:24 +02:00
Martijn Laan
4a4c51302f
Add Redir support to Extract7ZipArchive.
2025-05-19 20:42:17 +02:00
Martijn Laan
a1bffc816c
Clarify the name of functions taking a DisableFsRedir parameter but not having the ...Redir name. Especially helps if the call just says False for DisableFsRedir.
...
Also always set DisableFsRedir to False in InternalExtractTemporaryFile and DownloadTemporaryFile just like it already does for everything else working on the temp dir.
2025-05-19 19:29:09 +02:00
Martijn Laan
5e7b94923f
Merge branch 'main' into 7zdll
2025-05-19 17:20:36 +02:00
Martijn Laan
88dc65dddf
Fix TrustFunc not checking ISSigVerifySignature result but not also always raising an exception. Harden the other non checking ones for this.
2025-05-19 17:20:28 +02:00
Martijn Laan
d9356ae8ca
Add support functions Init7ZipLibrary and ExtractArchive.
2025-05-18 20:31:54 +02:00
Martijn Laan
faf859c14a
Cleanup duplicate ISSig verification code.
2025-05-18 19:55:05 +02:00
Martijn Laan
1470994d6a
Cleanup / fix. This reverts commit 4b954ee8.
2025-05-13 12:44:59 +02:00
Martijn Laan
55232b5f9e
Add support functions ISSigLoadTextFromFile and ISSigVerify. I image them being useful if you want to verify a downloaded archive which does not contain .issig files and which you cannot repack. This specific case would require the download to be to a protected folder though for full protection.
...
Adds support function GetSHA256OfStream as a side-effect.
Todo: doc all three.
2025-05-12 20:46:02 +02:00
Martijn Laan
3a1914add3
Cleanup a bit more.
2025-02-06 18:24:50 +01:00
Jordan Russell
fdf652b434
Set PopupMode=pmAuto in CreateCustomForm support function.
...
Only really matters when a custom form displays another custom form.
2025-01-12 02:29:33 -06:00
Jordan Russell
4502469ff7
Use proper owner on BrowseFunc support function dialogs.
2024-12-22 03:18:48 -06:00
Jordan Russell
f6f2f17381
Swap order in BringToFrontAndRestore support function to work around VCL bug.
...
If Application.BringToFront is called while the app is minimized, the Forms unit's WM_ACTIVATEAPP handler inexplicably sets FAppIconic=False, which causes the next Application.Restore call to be a no-op.
2024-12-18 02:20:42 -06:00
Jordan Russell
9d52a24040
Setup: De-form TMainForm and set MainFormOnTaskBar=True.
...
Mostly done, I think. Still need to actually remove shWindowVisible etc. Still some Application.Handle references that need to be cleaned out. Still need to update help.
TMainForm still exists, but is no longer a form. Good enough for now.
With Application.MainFormOnTaskBar=True, we now have a working taskbar thumbnail and proper minimize/restore animations. Finally.
2024-12-14 04:44:08 -06:00
Martijn Laan
0e8c3331f9
Cleanup.
2024-11-19 19:16:24 +01:00
Martijn Laan
ca8bbd69bc
Another cleanup.
2024-11-18 20:43:56 +01:00
Martijn Laan
9d8d786653
Cleanup variables.
2024-11-18 20:39:11 +01:00
Martijn Laan
ab30f81954
Pass original name to the procedures + update those which check the name.
2024-11-18 20:03:31 +01:00
Martijn Laan
5be0371089
Cleanup the names of the sfNoUninstall/sfOnlyUninstall functions for nicer error messages.
2024-11-18 19:45:35 +01:00
Martijn Laan
f1d7e47e59
Split off the helper stuff from ScriptFunc into two new other units + some other cleanup.
2024-11-18 19:44:49 +01:00
Martijn Laan
b575511ee3
Cleanup NoUninstallFuncError/NoSetupFuncError handling (centralize checks + show true function names instead of uppercased ones). Also put the helper funcs together.
2024-11-17 22:24:40 +01:00
Martijn Laan
8c1fe5cfc8
Modernize the mapping of function name to function code by using a dictionary. Function names are still listed the same amount of times (so only once unless code is shared) but it no longer requires a ton of else ifs (nor a ton of ROPS procs) and should also be a lot faster. Kept the categories even though they don't have an impact anymore except to keep things organized a bit more.
2024-11-17 19:29:17 +01:00
Martijn Laan
c265079e94
Final TPSVariantIFC code cleanup.
2024-11-16 20:54:51 +01:00
Martijn Laan
485ab27831
Even more cleanup.
2024-11-16 17:32:06 +01:00
Martijn Laan
5d316f3ab7
More cleanup.
2024-11-16 17:10:01 +01:00
Martijn Laan
4ace04e540
Cleanup.
2024-11-16 16:08:21 +01:00
Martijn Laan
6f13b4782b
Add new support functions StringJoin, StringSplit, and StringSplitEx. Todo: doc.
2024-11-16 14:14:52 +01:00