
21-12-2022, 01:14
|
 |
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 Masquerade
First of all, sorry for digging up this topic.
I have a small question about IsArcEx. If I wanted to run a batch file or other script after unpacking the FreeArc archive but also keep the elapsed timer running, whereabouts should I put the command?
All my post-FreeArc command run in a procedure called masquerade_work, so I call this after the FreeArc extraction finishes.
I have tried putting it on the line above IsArcExStop();, but this does not keep the timer running after the last archive has finished extracting:
Code:
for i:= 1 to ISArcExDiskCount do
begin
ISArcExError := not ISArcExExtract(i, ExpandConstant('{app}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'));
if ISArcExError then break;
end;
until true;
masquerade_work();
ISArcExStop;
Is there something I am doing incorrectly? The reason I would like to keep the elapsed timer running is because some of my scripts run for a long time after extracting data (recompressing, patching large files etc..) so it's important that the installer does not look stuck towards the user.
Thanks,
Masquerade
|
@Masquerade
Timer will run until it calls ISArcExStop.
Code:
...
masquerade_work();
ISArcExStop; // Timer Stops
...
Last edited by BLACKFIRE69; 03-04-2023 at 14:07.
|