|
|
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Quote:
The path to the My Documents folder. |
| The Following User Says Thank You to hitman797 For This Useful Post: | ||
Guravkov2010 (03-01-2023) | ||
| Sponsored Links |
|
#2
|
||||
|
||||
|
Quote:
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. . Last edited by BLACKFIRE69; 03-04-2023 at 14:07. |
| The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
ADMIRAL (06-01-2023), audiofeel (03-01-2023), Behnam2018 (24-11-2024), Gehrman (03-01-2023), hitman797 (16-12-2024) | ||
|
#3
|
||||
|
||||
|
Quote:
guys, can you tell me is this lib detected as a virus? Last edited by BLACKFIRE69; 03-01-2023 at 03:34. |
|
#4
|
||||
|
||||
|
VER: 0.4.0.1
Code:
What's new: - Improved performance, percentage and times. ( this version is not compatible with the old version (v.0.4) ) Last edited by BLACKFIRE69; 08-04-2026 at 14:19. |
|
#5
|
|||
|
|||
|
My K7 AV didn't detect anything..
VirusTotal report the following things. |
| The Following 2 Users Say Thank You to ffmla For This Useful Post: | ||
ADMIRAL (06-01-2023), BLACKFIRE69 (05-01-2023) | ||
|
#6
|
|||
|
|||
|
I've tried updating my script to reflect the new changes however now for some reason the error flag will instantly trigger leading to a failed installation.
There is no log written or IsArcEx error message box that could indicate the problem. Please may you take a look at my changes and see if anything is incorrect? The old strings are commented out with //. Thank you! Code:
//function ISArcExAddDisks(Inputfile, Password: Widestring): boolean; function ISArcExAddDisks(Inputfile, Password, OutputPath: Widestring): boolean; external 'ISArcExAddDisks@files:ISArcEx.dll stdcall'; //function ISArcExExtract(DiskNumber: Integer; OutputPath, CfgFile, WorkPath: Widestring): boolean; function ISArcExExtract(DiskNumber: Integer; CfgFile, WorkPath: Widestring): boolean; external 'ISArcExExtract@files:ISArcEx.dll stdcall'; Code:
#ifdef Data1
if FileExists(ExpandConstant('{src}\{#Data1}')) then
begin
ISArcDiskAddingFalied:= ISArcExAddDisks(ExpandConstant('{src}\{#Data1}'), '{#DiskPassword}', ExpandConstant('{app}'));
if ISArcDiskAddingFalied then break;
ISArcExDiskCount:= ISArcExDiskCount + 1;
end;
#endif
Code:
for i:= 1 to ISArcExDiskCount do
begin
//ISArcExError := not ISArcExExtract(i, ExpandConstant('{app}\'), ExpandConstant('{tmp}\ARC.INI'), ExpandConstant('{app}'));
ISArcExError := not ISArcExExtract(i, ExpandConstant('{tmp}\ARC.INI'), ExpandConstant('{app}'));
if ISArcExError then break;
end;
|
|
#7
|
||||
|
||||
|
Quote:
yes, there's something incorrect. see the hint below. ![]() Code:
v0.4.0.0 (Old) >> ISArcDiskAddingFalied v0.4.0.1 (New) >> ISArcDiskAddingSuccess Quote:
add this before the ISArcExInit. you'll see the error. (sorry, i put the error message in the wrong place in the script) Code:
if ISArcExDiskCount = 0 then
MsgBox('There is no any archive found for unpacking.', mbError, MB_OK);
|
|
#8
|
|||
|
|||
|
Maybe I am not following, but I don't see how changing the name of the Boolean for the disk adding command will fix the issue.
|
|
#9
|
||||
|
||||
|
Quote:
Code:
ISArcExDiskCount:= 0;
if FileExists(ExpandConstant('{src}\{#Data1Path}')) then
begin
ISArcDiskAddingFalied:= ISArcExAddDisks(ExpandConstant('{src}\{#Data1Path}'), '{#DiskPassword}');
if ISArcDiskAddingFalied then break;
ISArcExDiskCount:= ISArcExDiskCount + 1;
end;
for i:= 1 to ISArcExDiskCount do
begin
case i of
1 : ISArcExError:= not ISArcExExtract(i, ExpandConstant('{app}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'));
2 : ISArcExError:= not ISArcExExtract(i, ExpandConstant('{userdocs}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{userdocs}'));
3 : ISArcExError:= not ISArcExExtract(i, ExpandConstant('{tmp}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{tmp}'));
else
ISArcExError:= not ISArcExExtract(i, ExpandConstant('{app}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'));
end;
if ISArcExError then break;
end;
second data file to {userdocs} third data file to {tmp} all others data file to {app} Last edited by Cesar82; 03-01-2023 at 03:05. |
| The Following 4 Users Say Thank You to Cesar82 For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ASIS: Advanced Simple Installer Script | KaktoR | Conversion Tutorials | 1477 | 20-05-2026 10:52 |
| XTool 2020 (Plugins) | Razor12911 | Conversion Tutorials | 405 | 24-12-2024 05:30 |
| Game Installer Designer by altef_4 | altef_4 | Conversion Tutorials | 236 | 28-05-2021 02:54 |
| Best Compression For Archiving | brispuss | PC Games | 12 | 03-01-2020 13:34 |
| Compression Questions | yasitha | Conversion Tutorials | 10 | 09-01-2019 12:29 |