- Home /
how to open Executables from encrypted .ZIPs
i want to build an system to open .exe executables inside .zips, whowever, i don't know how to do that, there's any way i can do that? there's something like this:
voidStart(){
var a = GetEXEFromZip(stringPath+"name.zip");
a.password = 17
a.Process.Start();`
}
Answer by Captain_Pineapple · Mar 03 at 08:53 AM
Afaik this does not work as you want it to.
When you have a zip file, everything in it is compressed. So all files are somewhat "mashed together" if you will. While windows acutally allows to launch an exe froma zip without extraction, your programm will fail immideatly if it relies on any file that has been zipped together with it as it is not aware of where to find those files and how to extract them.
So to put it short: As soon as your exe needs any file with it, this will definetly not work.
Apart from that: to actually run the exe your system will in some form have to decompress the file and load it into your RAM. So there is not much to gain from what you are asking.
Actually even windows itself can not run an executable from within an archive. When you open an exe from inside a zip file, windows will extract the file into the temp folder and run the extracted file. As you said, since it only extracts the exe file, if the program relies on any additional files inside the archive, it would fail / not load at all.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Global Fog Messy Transition Between Objects and Skybox 1 Answer
nut and bolt object construction system? 0 Answers