Thread: MD5 Checksum
View Single Post
  #1  
Old 22-12-2018, 04:06
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,337 Times in 2,839 Posts
KaktoR is on a distinguished road
Include quicksfv.exe and your md5/sfv file in setup.exe [Files] section and let this two files unpack in your game folder {app}.

Code:
[Files]
Source: File.md5; DestDir: {app};
Source: QuickSFV.exe; DestDir: {app};
After install is finished use this in [Code]
Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
  ErrorCode: Integer;
begin
if (CurStep = ssDone) then begin
      Exec(ExpandConstant('{app}\QuickSFV.exe'),'{#CRCFileName}','',SW_SHOW, ewWaitUntilTerminated, ErrorCode);
      DeleteFile(ExpandConstant('{app}\QuickSFV.exe'));
      DeleteFile(ExpandConstant('{app}\QuickSFV.ini'));
    end;
  end;
end;
__________________
Haters gonna hate

Last edited by KaktoR; 22-12-2018 at 04:23.
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
BLACKFIRE69 (12-09-2019), Punisher (22-12-2018)
Sponsored Links