with the FileEntries this is possible, however with the ModuleEntries it is a bit more tricky, since the Modules are a continous memory block of preloaded DLLs.
setting the length of a Module to 0 is possible, but it would just result in a memory gap that cannot be used. In theory this could be declared as additional RAM, but
the RAM areas are hardcoded in the nk.exe, so they wont be recognized dynamically.
I tried my approach on the minimalistic NK.BIN but it was not successful.
there are some problems:
the nk.exe contains some device specific pre-inits of the hardware, so we need to use an existing nk.exe from our NK.BINs.
but this is not so easy either, because that "3rd party component" approach that I found works fine with non-standard DLLs, but because the standard DLLs
are always created during the build process, so there is a conflict when a 3rd party component tries to overwrite these generated files.
if this happens, the build is canceled
as a workaround it should be possible to let the nk build process create a dummy nk.exe and replace it with a nk.exe from our NK.BIN
I havent tried that yet.
I also found out that the minimal NK.BIN contails just a nk.exe and a coredll.dll ... so I suspect that one of these two could also be the cause of the strange
DLL and EXE search behaviour.