The Original script was posted on run.ru
All credit goes to paul44.
I have just modified it to suit repack installers. (automatic patching when opened)
This tool will create patches for games (created by the repacker) and then when game patcher.bat is executed, it will automatically detect game and apply the patch without user interference.
How To Use:
YOU MUST EDIT THE FOLLOWING LINES ACCORDING TO THE GAME BEFORE USE:
I do not recommend editing any other lines then the mentioned ones to avoid code breaking.
Code:
IN XdeltaPatchCreator_v2.0a.bat:
line 37
line 123
IN XdeltaGamePatcher_v2.8e.bat:
line 39
line 48,49,50
line 109
How to Create Patch: After editing, open XdeltaPatchCreator_v2.0a.bat and create patch.
How to Apply Patch: After editing, copy XdeltaGamePatcher_v2.8e.bat, _TempPatch and xdelta3-3.0.8.x86-64.exe to the base game folder.
If you are using setup file, You must create an archive with these three files so that they extract inside the base game folder. And edit the script to run XdeltaPatchCreator_v2.0a.bat
It will delete all junk files after execution including the .bat file itself.
Script Code example:
Code:
[Run]
Filename: "{app}\XdeltaGamePatcher_v2.8e.bat"; StatusMsg: "Installing Latest Update"
If you want to run it hidden:
[Run]
Filename: "{app}\XdeltaGamePatcher_v2.8e.bat"; StatusMsg: "Installing Latest Update"; Flags: runhidden
You can also add other flags to it.
You can press the Thanks button to appreciate my work