![]() |
what is the best and right way to patch a file in inno setup using xdelta
I want to patch one big file (~1GB) inside of my installer that I created with inno setup
for creating the binary different patch file I think the best way is using xdelta (if there is any better ways I will be happy to hear it), but I'm not sure what is the best way to apply the created xdelta patch to a file in install time. I know there is a function name ISXDeltaExtract in IsDone that I think created for same reason, but I'm not sure how can I use it properly Code:
function ISxDeltaExtract(CurComponent: Cardinal; PctOfTotal: Double; MinRAM, MaxRAM: Integer; InName, DiffFile, OutFile: AnsiString; DeleteInFile, DeleteDiffFile: Boolean): Boolean; |
It is necessary to include XDelta3.dll in your installer.
You can create the code by copying parts of the code included in the DiskSpan GUI 2.0.0.2 example script. ISxDeltaExtract only works if you create the patch using XDelta with the parameters: Code:
MakePatch.bat |
Quote:
but something that I still not sure about is how can I show the progress of it in installation page of my installer... |
I Keep getting this error...
and I dont know why https://i.ibb.co/cYJ6pYn/Screenshot-...-17-151642.png here is the line of code Code:
ExtractTemporaryFile('XDelta3.dll');what is the type of first argument of function? should I pass a compressed file to it?? |
Quote:
Example patch 10% of progressbar. Code:
if not ISArcExtract ( 0, 0.9, ExpandConstant('{src}\*.arc'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break; |
Quote:
Code:
ExtractTemporaryFile('XDelta3.dll'); |
Quote:
I just using the ISDone.dll for the xdelta function, and im not using any other function |
1 Attachment(s)
Quote:
xdelta3.exe -e -9 -S djw -vfs "%OldFile%" "%NewFile%" "%OldFile%.diff" Tested with XDelta 3.0.11 Use the attachment to create the .diff file |
Quote:
Code:
#define MyAppName "My Program" |
| All times are GMT -7. The time now is 03:52. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com