Appacker
Appacker copied to clipboard
In-memory (file-less) operation?
Hi there! Thanks a lot for writing this little thingy!
Just wanted to ask you: would it be possible to implement a "disk-less" mode when all files and resources are written to a virtual filesystem in RAM? (and not to TMP dir).
I'm not a programmer myself (still learning) and I've googled around for libraries - there are some. Will it be worth the effort?
Thanks!
Hmm, i never done anything like that or even thought of it.
Quick googling seems to suggest that this is indeed possible for .NET assemblies, at least for single-file applications (example article). For native exes it should be possible sometimes, with a handful of dark magic (this stackoverflow links a relevant article). However, i found no info on what would happen if an app-from-memory would try to access local files. Like reading a config file with a relative path, or writing a temp file to a temp folder. Would it 'just work' or do you have to manage it all yourself and emulate file system somehow?
What kind of libraries did you manage to find? Maybe there's some magic lib that does everything for you.
But from what i saw so far, i'm afraid that this task is beyond my abilities.
For .NET assemblies embedded ressources or ILMerge could be used - here is a tool which supports both and has a comparison matrix: https://github.com/MiloszKrajewski/LibZ/blob/master/doc/matrix.md (For native the last time I used it, I made it as embedded ressources and temporary extracted them to the temp-folder with random names.)