How to Use xdelta Files

It's really simple. Let's say you have episode01v2.xdelta and need to patch your episode.

1. Download xdelta3.exe from somewhere.
2. Create patch.bat (or whatever name, but .bat).
3. Type "xdelta3.exe -d episode01v2.xdelta" in it (without the quotation marks) and save it.
4. Double-click on the .bat file.
Done.

The files have to be in the same folder as the file you're patching. Alternatively, just put xdelta3.exe in your system folder and keep it there for future use. Or put it wherever you want and include full path in the .bat file.

If, by any chance, you want to create an xdelta, you need a command line like this:
xdelta3 -s "episode01.mkv" "episode01v2.mkv" episode01v2.xdelta
(Quotation marks only really needed for whatever has spaces in it.)




How to Use xdelta Files without Needing .bat Files


If you want to make things easier and patch files just by double-clicking the xdelta file, you need to edit the registry.

Find these entries in regedit:
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xdelta

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\xdelta_auto_file\shell\open\command
This is from WinXP, and it should be the same in win7 and 8.
If it somehow isn't, search for "xdelta" under HKEY_LOCAL_MACHINE, and you'll figure it out.

Under these entries, you will probably see a String Value with the name "(Default)". If not, create it. Then double-click it to edit and put this under "Value data":
"xdelta_auto_file"

"C:\WINDOWS\system32\xdelta3.exe" -d "%1"
First one's for the .xdelta, second for the shell\open\command.

Again, the path here will be to wherever your xdelta3.exe is. When you double-click an xdelta file now, it should apply the patch automatically.

Alternatively, download this. It contains a .reg file. Running it (just double-click) will add those 2 entries to the registry, and stuff should start working.

If the link dies or something, you can create xdelta.reg (or whatever name, but .reg) and put this in it:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xdelta]
@="xdelta_auto_file"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\xdelta_auto_file\shell\open\command]
@="\"C:\\WINDOWS\\system32\\xdelta3.exe\" -d \"%1\""
If you need a different path, mind the double backslashes in the path.