I hope this is not a shameless plugin, but I wrote a cover library for both PatchAPI and MSDelta for my own purposes.
The library is dual licensed under MS-PL and DBAD-PL and is available on GitHub .
Iβm working on the idea of ββpublishing a project on NuGet, but for now, you can download the source code and create and apply the delta.
Creating a delta should be self-evident:
var compression = new MsDeltaCompression(); compression.CreateDelta(sourcePath, destinationPath, deltaPath);
And the delta is equally self-evident (I hope):
var compression = new MsDeltaCompression(); compression.ApplyDelta(deltaPath, sourcePath, destinationPath);
Tested on x86, but P / Invoke signatures should be equally valid for x64 and ia64.
If you have not decided whether you use PatchAPI or MSDelta, my README.md project tries to suggest (briefly) which one you should use, but otherwise, the documentation for Microsoft Delta Compression says MSDelta vs. PatchAPI:
MSDelta ... can create much smaller compressed files than those produced by other methods . Windows Vista Delivery is the next generation of technology previously released as PatchAPI (which will continue to be supported).
Emphasis on mine.
ta.speot.is
source share