
03-01-2023, 03:31
|
 |
Registered User
|
|
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
|
|
Quote:
Originally Posted by BLACKFIRE69
ok, i'll let you change the output directory when adding disks.
Code:
<--- Change --->
1. syntax:
function ISArcExAddDisks(Inputfile, Password, OutputPath: Widestring): boolean;
function ISArcExExtract(DiskNumber: Integer; CfgFile, WorkPath: Widestring): boolean;
2. example:
// Disk Adding part
repeat
if FileExists(ExpandConstant('{src}\data1.bf')) then
begin
ISArcDiskAddingFalied:= ISArcExAddDisks(ExpandConstant('{src}\data1.bf'),
'{#DiskPassword}', ExpandConstant('{app}'));
if ISArcDiskAddingFalied then break;
ISArcExDiskCount := ISArcExDiskCount + 1;
end;
...
#ifdef Components
if IsComponentSelected('something1\something2') then
begin
ISArcDiskAddingFalied:= ISArcExAddDisks(ExpandConstant('{src}\ConfigShit.bf'),
'{#DiskPassword}', ExpandConstant('{userdocs}\BFGames'));
if ISArcDiskAddingFalied then break;
ISArcExDiskCount := ISArcExDiskCount + 1;
end;
...
#endif
until true;
.....
// Extraction
for i := 1 to ISArcExDiskCount do
begin
ISArcExError := not ISArcExExtract(i, ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\temp'));
if ISArcExError then break;
end;
.....
Code:
summary:
data1.bf ---> {app}
...
configShit.bf ---> {userdocs}\BFGames}
...
Note: just replacing the library (.dll) is not enough. update your previous scripts as well.
.
|
guys, can you tell me is this lib detected as a virus?
Last edited by BLACKFIRE69; 03-01-2023 at 03:34.
|