it is not good practice to insert the compiler directives in this form. It would be better to do this via an include file. However, this does not really result in a significant reduction in size: from 1.60 MB to 1.43 MB. I think this discussion is superfluous.
I could shrink the exe file to 1.6 MB but it seems to me like whining on a high level.
I could shrink exe file to 1.6 MB but it seems to me like whining on a high level.
You can use UPX to compress the exe file: https://upx.github.io
Delphi compiles with RTTI, which considerably increases the size of the exe files. To disable this, you can use the compiler directive {$RTTI...} but as of Delhi XE6 this needs to be added to each individual unit of the project. "innounp" has more than 120 units. Does the exe size really matter? Furthermore, no remote host connection is required in any case.
The repository for my innounp Unicode version is now online:: Innounp on GitHub
I am providing a Windows GUI for the Inno Setup Unpacker on GitHub, The description there contains a link to the SourceForge website of innounp. Since there have been no updates of the SourceForge project since 2020 and the source codes not yet are adapted to the current Delphi versions (by default strings are Unicode) I have modified them so that they can be compiled with Delphi 10ff. Some bugs have also been fixed. Apart from that, it is a branch of the original sources but currently still experimental....
Fixed in the innounp Unicode version 1.66: more information