Embedding the EW_ file in makensis.exe or directly in generated installer?Originally Posted by Anders View PostThe difficult part would be patching the exehead when compiling, after all, if we embed the EW_ file as a resource it can just be extracted...
I think if it is embedded in makensis then it will become invisible in generated .exes (but 7zip author still can download the makensis and look at it - this is why I prefer random values).
I started to play with makensis and disassembler and I got another idea:
Enums in C++ are translated as integers => every enum occurrence in source files is (during compilation) replaced by some int value.
What if I find that integer value (e.g. EW_EXTRACTFILE it is 20) and replace it with different?
In disasm that is only instruction like mov reg, 0x0000value.
So I could find e.g. EW_CHDETAILSVIEW and replace it with EW_EXTRACTFILE values.
This should, work, shouldn't it? Is single change enough?