Run GenPatcher.exe as administrator, point it to your Command & Conquer: Generals or Zero Hour folder, and follow the on-screen prompts.
Check the included Readme.txt or ask in the support channel. genpatcher v2.12
Thanks to everyone who reported issues with the previous version! Run GenPatcher