View Single Post
  #8  
Old 17-09-2021, 11:59
maybeknow maybeknow is offline
Registered User
 
Join Date: Sep 2021
Location: canada
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
maybeknow is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
Make patch with parametters
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
thank you, I defiantly doing something wrong, here is my code
Code:
#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
AppId={{D304513B-BAFC-4211-96A0-0FFA39EAB24E}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
OutputDir="C:\Users\saman\Desktop\12Min"
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Files]
Source: "ISDone.dll"; DestDir: "{tmp}"; Flags: dontcopy;
Source: "XDelta3.dll"; DestDir: "{tmp}"; Flags: dontcopy;
Source: "xdelta\test\File_Old.txt.diff"; DestDir: "{tmp}"; Flags: dontcopy;

[-code]
function ISxDeltaExtract(CurComponent: Cardinal; PctOfTotal: Double; MinRAM, MaxRAM: Integer; InName, DiffFile, OutFile: AnsiString; DeleteInFile, DeleteDiffFile: Boolean): Boolean; external 'ISxDeltaExtract@{tmp}\ISDone.dll stdcall delayload';

procedure CurStepChanged(CurInstallStep: TSetupStep );
begin
  if (CurInstallStep = ssInstall) then
  begin
    ExtractTemporaryFile('XDelta3.dll');
    ExtractTemporaryFile('ISDone.dll');
    if ISxDeltaExtract(0, 0, 0, 640, ExpandConstant('{app}\File_New.txt'), ExpandConstant('{app}\*.diff'), ExpandConstant('{app}\test_dest.txt'), false, false) then Log('nice.');
  end;
end;
sorry for bother you so much and thank you
Reply With Quote