Miscellaneous Options

-version
-v

Display the GenPatch version information.

-help
-h

Output very brief usage information of GenPatch. Please refer to this manual instead that documents all features.

-cache

Preserve patch information for later reuse. May speed up your testing of BinPatch options to just enter and be done once you have created the patch information for files. When you change a single file not all other information needs to be renewed. While BinPatch is so really fast that you may not need it in most cases, this option is a big helper if you got some hard nuts for BinPatch in your software.

-protect=startfile,startoffset,endfile,endoffset,size

Protect parts of the patched files to kept intact during the patching process. At this time constant blocks on known offsets can be overtaken. These parts are excluded from the CRC32 verification and basically treated as if they were unchanged when creating the patch file. If you make a multi-version patch file, just specify more than one "startfile,startoffset" pair, but exactly how many files are present. Please note that this option also requires the given order of files and disables auto-detection for the specified end-file, furthermore no auto-arrange is done so you should choose the optimum order of multiple start files yourself. And the order of start files must match the order as specified in the parameters to GenPatch.

-K=@RegManip.reg,HKLM/Software/YX/Install,yourmain.exe,r

(not implemented yet)

Specify a registry manipulation to be done after successfully applying the patch file. The file given is expected to be in REGEDIT4 file format as output by the registry editor on Win32 platforms. A single exception: You specify a single replacement character that is being replaced with the contents of the specified registry key contents at runtime. I.e. all occurrences of %r in the values will be replaced with what is found on the client machine at the time the patch is applied. You are free to choose any numeric or alpha character and the replace marking is case sensitive. The manipulation requires full access to manipulated keys and read access to the lookup key. To maximize use of this, you can specify a base value which is known to be always present and that e.g. parts a path part that you want to replace elsewhere from the not needed filename.