❔ Patch for my C program
I wrote a simple program on WinForms and decided to make a patch for it. How can I delete 3 lines of code from an exe file? Where should I start?)
5 Replies
If you still have the source project, make a new build with the edits
Otherwise you have to decompile it
Of course there is a source project, the point is to understand how it works
Unless you have an automated update system, all you can really do is notify the users and tell them to download the new build
The alternative is binary patching, which is extremely complicated and hard to do.
When you patch a game or a program, they usually update content files as opposed to the executable itself. If the executable or dll files etc need to be updated, they are replaced entirely.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.