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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2022, 01:34
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Talking ISArcEx - A FreeArc Archive Extractor Plugin for InnoSetup

ISArcEx - FreeArc Archive Extractor Plugin for InnoSetup


Quote:
ISArcEx v0.4

- Now instead of doing it manually, the total percentage is automatically calculated at run-time according to the uncompressed data sizes of the archives.
- The amount of data currently extracted and the number of MB of uncompressed data in the archive are added to the callback. (As requested)
- Added better and more detailed error handling.
- Improved to work with components.
- Fixed speed issue.
- Fixed some minor bugs.
- There is no back-compatibility with the previous versions (< v0.4).
Screenshots:
Attached Images
File Type: png ISArcEx_SC01.png (19.6 KB, 1360 views)
File Type: png 00 (1).png (21.7 KB, 232 views)
File Type: png 0.png (14.4 KB, 186 views)
Attached Files
File Type: rar ISArcEx v0.4.0.1 - Update [2024-May-14].rar (4.02 MB, 119 views)

Last edited by BLACKFIRE69; 14-05-2024 at 04:19. Reason: Added latest update
Reply With Quote
The Following 34 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (27-03-2022), auaksa (09-01-2023), audiofeel (24-03-2022), buttignol (12-03-2022), Cesar82 (20-03-2022), chepgameps4 (21-03-2022), crachlow (01-08-2023), dixen (12-03-2022), Ele (13-03-2022), ffmla (12-03-2022), FIFA_LOVER (13-03-2022), Gehrman (13-03-2022), GTX590 (12-03-2022), Harsh ojha (12-03-2022), hdneo (11-05-2023), hitman797 (07-01-2023), Junior53 (14-09-2023), Karekas (08-03-2023), kj911 (16-03-2022), kozmik (28-02-2023), L0v3craft (13-03-2022), lolaya (20-03-2022), Lord.Freddy (17-08-2022), meadwey (17-05-2024), ramydarkness (22-03-2022), RedDanzig (06-09-2023), ScOOt3r (12-03-2022), sennen (22-03-2024), shazzla (12-03-2022), st0rm (29-03-2022), TheTh1996 (17-07-2024), vint56 (12-03-2022), Vladislav989 (04-01-2023), Wanterlude (13-03-2022)
Sponsored Links
  #2  
Old 20-03-2022, 19:03
lolaya lolaya is offline
Banned
 
Join Date: Jul 2011
Location: still life
Posts: 138
Thanks: 156
Thanked 38 Times in 29 Posts
lolaya is on a distinguished road
i love u work ♥
Reply With Quote
The Following User Says Thank You to lolaya For This Useful Post:
BLACKFIRE69 (21-03-2022)
  #3  
Old 24-03-2022, 01:51
Gehrman's Avatar
Gehrman Gehrman is offline
Registered User
 
Join Date: Jan 2020
Location: Save Palestine
Posts: 78
Thanks: 1,267
Thanked 87 Times in 47 Posts
Gehrman is on a distinguished road

what is the problem?
Reply With Quote
  #4  
Old 28-03-2022, 13:09
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Gehrman View Post

what is the problem?

Code:
1. Goto line 546, (Ctrl + G then 546)

2.

Change
  LabelTime3 := TLabel.Create(WizardForm);
  with LabelTime3 do begin
    ...
    Left     := 180;
    Top      := 200;
  end;

To
  LabelTime3 := TLabel.Create(WizardForm);
  with LabelTime3 do begin
    ...
    Left     := WizardForm.FinishedLabel.Left;
    Top      := WizardForm.FinishedLabel.Top + ScaleY(120);
  end;
Reply With Quote
The Following User Says Thank You to BLACKFIRE69 For This Useful Post:
Gehrman (28-03-2022)
  #5  
Old 19-05-2022, 05:24
Spotless's Avatar
Spotless Spotless is offline
Registered User
 
Join Date: Nov 2021
Location: Egypt
Posts: 28
Thanks: 0
Thanked 2 Times in 2 Posts
Spotless is on a distinguished road
Hello Blackfire
Could you edit this script for me?

i want to add launch a game check box to the finish page
and when i type the shortcut name called Battle.net it must be Battle.net.lnk for my file location but it does not make it correct
and open a website checkbox too

and a question can i copy ur dll to a new empty script and add my archives to it? because i wanna do some edits with the wizardform designer

thanks!
Attached Files
File Type: rar ISArcEx_Example.rar (4.6 KB, 39 views)
__________________
Be kind so that people be kind with you

Last edited by Spotless; 19-05-2022 at 10:44.
Reply With Quote
The Following User Says Thank You to Spotless For This Useful Post:
ADMIRAL (27-07-2022)
  #6  
Old 26-07-2022, 03:49
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Spotless View Post
a question can i copy ur dll to a new empty script and add my archives to it? because i wanna do some edits with the wizardform designer

thanks!
sorry for the late reply.
you can include ISArcEx for any script. but just copying the dll is not enough.
you should know how to work with the ISArcEx.dll. follow the examples provided for help. or you can PM your script and i can help you out.

Quote:
Originally Posted by Spotless View Post
Hello Blackfire
Could you edit this script for me?

i want to add launch a game check box to the finish page
and when i type the shortcut name called Battle.net it must be Battle.net.lnk for my file location but it does not make it correct
and open a website checkbox too
ok, check out the attachment. also press "CTRL + F" and search for the word "NewChanges".

.
Attached Images
File Type: png 1.png (7.1 KB, 1002 views)
File Type: png 2.png (6.2 KB, 987 views)
File Type: png 3.png (8.0 KB, 986 views)
File Type: png 4.png (27.0 KB, 984 views)

Last edited by BLACKFIRE69; 03-04-2023 at 14:06.
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (27-07-2022), Gehrman (26-07-2022)
  #7  
Old 26-07-2022, 06:15
Gehrman's Avatar
Gehrman Gehrman is offline
Registered User
 
Join Date: Jan 2020
Location: Save Palestine
Posts: 78
Thanks: 1,267
Thanked 87 Times in 47 Posts
Gehrman is on a distinguished road
Hi BLACKFIRE69
How to remove this section?
Reply With Quote
  #8  
Old 26-07-2022, 08:21
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Gehrman View Post
Hi BLACKFIRE69
How to remove this section?
1. Comment the second line of [types] section.

Code:
[Types]
Name: full; Description: Full installation; Flags: iscustom
;Name: custom; Description: Custom installation;
2. Remove types from the [Components] section.
Code:
Before:

[Components]
Name: extra; Description: Extra; Types: full custom;
...
Name: voice; Description: Interface Language and Voices; Types: full;
...

After:

[Components]
Name: extra; Description: Extra;
...
Name: voice; Description: Interface Language and Voices;
...
.
Attached Images
File Type: png 1.png (7.8 KB, 976 views)
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (27-07-2022), Gehrman (03-08-2022)
  #9  
Old 20-12-2022, 14:11
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,159
Thanks: 284
Thanked 1,349 Times in 612 Posts
Masquerade is on a distinguished road
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
Reply With Quote
  #10  
Old 21-12-2022, 01:14
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
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.
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
Cesar82 (21-12-2022), Masquerade (21-12-2022)
  #11  
Old 02-01-2023, 14:00
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 356
Thanks: 435
Thanked 818 Times in 299 Posts
audiofeel is on a distinguished road
It is a little unclear how to specify the path for unpacking, for example, "data2.bf" I need to unpack it in the documents folder. I found how to change the path, but it changes for all archives.
that is, I need to "data1.bf" and "data3.bf " unpacked to the {app} folder. "data 2.bf " unpacked to the {documents} folder

Last edited by audiofeel; 02-01-2023 at 14:17.
Reply With Quote
  #12  
Old 03-01-2023, 00:29
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,159
Thanks: 284
Thanked 1,349 Times in 612 Posts
Masquerade is on a distinguished road
I have encountered a similar problem. Sometimes I need to extract an archive located in {app} and extract it to {app}. Adding a disk from {app} will cause the No Archives to Extract error.
Reply With Quote
  #13  
Old 03-01-2023, 00:33
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 167
Thanks: 443
Thanked 180 Times in 117 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
It is a little unclear how to specify the path for unpacking, for example, "data2.bf" I need to unpack it in the documents folder. I found how to change the path, but it changes for all archives.
that is, I need to "data1.bf" and "data3.bf " unpacked to the {app} folder. "data 2.bf " unpacked to the {documents} folder
{userdocs} & {commondocs}
The path to the My Documents folder.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
Guravkov2010 (03-01-2023)
  #14  
Old 03-01-2023, 00:55
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 356
Thanks: 435
Thanked 818 Times in 299 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
{userdocs} & {commondocs}
The path to the My Documents folder.
is everything done in a tricky way there. can't you figure it out without 100 grams. if you change the constant, it will change for all archives
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
          ISArcExError:= not ISArcExExtract(i, ExpandConstant('{app}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'));
          if ISArcExError then break;
        end;

Last edited by audiofeel; 03-01-2023 at 01:02.
Reply With Quote
  #15  
Old 03-01-2023, 03:00
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 668
Thanks: 471
Thanked 2,374 Times in 542 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
is everything done in a tricky way there. can't you figure it out without 100 grams. if you change the constant, it will change for all archives
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
          ISArcExError:= not ISArcExExtract(i, ExpandConstant('{app}\'), ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'));
          if ISArcExError then break;
        end;



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.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (06-01-2023), audiofeel (03-01-2023), Gehrman (03-01-2023)
Reply

Thread Tools
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASIS: Advanced Simple Installer Script KaktoR Conversion Tutorials 1376 09-10-2024 08:20
XTool 2020 (Plugins) Razor12911 Conversion Tutorials 404 13-07-2024 08:52
Best Compression For Archiving brispuss PC Games 13 06-09-2023 05:49
Game Installer Designer by altef_4 altef_4 Conversion Tutorials 236 28-05-2021 02:54
Compression Questions yasitha Conversion Tutorials 10 09-01-2019 12:29



All times are GMT -7. The time now is 19:08.


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