Paul Schwabauer - 2024-01-02

I guess it would be easier to create hard links, as there is no need for developer mode while building and running the installer. NSIS saves duplicate files only once in the installer, so we could check if the same file is already saved and create a hard link to it.

Edit: In Source/exehead/exec.c at case EW_EXTRACTFILE we could check if we have saved a file a the same offset already (in this case check param2) and call CreateHardLink(newFile, alreadySavedFile, NULL).
This works because CEXEBuild::datablock_optimize() saves the same file to the same offset.

 

Last edit: Paul Schwabauer 2024-01-02