Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-09-2021, 06:18
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
I Keep getting this error...
and I dont know why


here is the line of code
Code:
ExtractTemporaryFile('XDelta3.dll');
ISxDeltaExtract(0, 0, 0, 256000, ExpandConstant('{app}\test1.txt'), ExpandConstant('{tmp}\test1.txt.diff'), ExpandConstant('{app}\out3.dat'), false, false);
oh I think I made a big mistake...
what is the type of first argument of function? should I pass a compressed file to it??

Last edited by maybeknow; 17-09-2021 at 07:09.
Reply With Quote
Sponsored Links
  #2  
Old 17-09-2021, 07:56
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by maybeknow View Post
I Keep getting this error...
and I dont know why


here is the line of code
Code:
ExtractTemporaryFile('XDelta3.dll');
ISxDeltaExtract(0, 0, 0, 256000, ExpandConstant('{app}\test1.txt'), ExpandConstant('{tmp}\test1.txt.diff'), ExpandConstant('{app}\out3.dat'), false, false);
oh I think I made a big mistake...
what is the type of first argument of function? should I pass a compressed file to it??
Code:
ExtractTemporaryFile('XDelta3.dll');
ISxDeltaExtract(0, 0, 0, 640, ExpandConstant('{app}\test1.txt'), ExpandConstant('{tmp}\test1.txt.diff'), ExpandConstant('{app}\test_dest.txt'), false, false);
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
maybeknow (17-09-2021)
  #3  
Old 17-09-2021, 08:21
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
Code:
ExtractTemporaryFile('XDelta3.dll');
ISxDeltaExtract(0, 0, 0, 640, ExpandConstant('{app}\test1.txt'), ExpandConstant('{tmp}\test1.txt.diff'), ExpandConstant('{app}\test_dest.txt'), false, false);
thank you again, but I still getting the same result...
I just using the ISDone.dll for the xdelta function, and im not using any other function
Reply With Quote
  #4  
Old 17-09-2021, 11:32
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by maybeknow View Post
thank you again, but I still getting the same result...
I just using the ISDone.dll for the xdelta function, and im not using any other function
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
Attached Files
File Type: 7z Make Patch XDELTA.7z (175.4 KB, 46 views)

Last edited by Cesar82; 17-09-2021 at 11:35.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
maybeknow (17-09-2021)
  #5  
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
Reply

Tags
inno setup, patch, xdelta, xdelta3

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 02:38.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com