Original Post
Hi gamedev(elopers) is there such a way to do autopatching in win32? Let's explain better: I have a standard PE exe file and I want to let the user download the "patch" from internet in a clear way. Now I already know how to download, patch, change version, server handshake, security etc. and actually I made it through a little external executable that do all the work and rewrite my main exe. But there's a way to handle this without helping from an external program? I mean: there is a way to an executable to rewrite itself according to the new data obtained from the net? Basically now I know that I cannot for several reason: 1) the file is "in use" 2) I cannot rewrite code flow without terrible consequence Windows loader open the file and keep it open during all the execution time? Am I wrong about this last sentence? If it's in this way why in hell the kernel keep it open? As far as I can see all commercial games that have autopatch use an exernal exe to update the main file (and resource files). Thanks in advance and, as usual, apologize for my orrible english.