FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ISArcEx - A FreeArc Archive Extractor Plugin for InnoSetup (https://fileforums.com/showthread.php?t=104980)

BLACKFIRE69 12-09-2023 08:25

Testing
 
1 Attachment(s)
Code:

* Added Average Speed.

Code:

type
  TCallback = function(OverallPct, CurrentPct, DiskTotalMB, DiskExtractedMB: Integer;
    DiskName, CurrentFile, RemainsTime, ElapsedTime, CurSpeed, AvgSpeed: WideString): LongWord;

type
  TCallbackEx = function(OverallPct, CurrentPct, DiskTotalMB, DiskExtractedMB, TotalFiles, CurFiles: Integer;
    DiskName, CurrentFile, RemainsTime, ElapsedTime, CurSpeed, AvgSpeed: WideString): LongWord;

so, can you guys test this?


.

Fak Eid 12-09-2023 10:19

@Blackfire69
Thank you soo much.. _/\_
It was a much needed feature to counter speed drop at disks transitions.

BLACKFIRE69 13-03-2024 04:54

ISArcEx - Minor Update
 
1 Attachment(s)
ISArcEx - Minor Update


Quote:

* Some minor improvements.

* ISArcExCleanUp:

- This function is deprecated; you can still call it, but it will have no effect.

* Added new function ISArcExAddDisksEx:

- function ISArcExAddDisksEx(InputFile, Password, BaseDirInArc, OutputPath: WideString): Boolean;
- Now you can extract items (files/folders) from a specific folder within the archive.

Code:

- Example: Consider the following structure of 'data-langs.bin':

--------------------------------------------------------------------------------------
data-langs.bin:
  > Eng
      bin-eng (a folder)
      file-eng.mp4
      {other_items}
  > Rus
      bin-rus (a folder)
      file-rus.mp4
      {other_items}

  {rest_of_the_items_in_the_archive}
--------------------------------------------------------------------------------------



* if you call 'ISArcExAddDisksEx' like this:

  ISArcExAddDisksEx('C:\Test\data-langs.bin', 'MyPwd', 'Eng', 'D:\Test\Output');

* it'll extract items only from the 'Eng' folder (bin-eng, file-eng.mp4, etc.)
into the destination (D:\Test\Output), and other items in the archive will be ignored.


Code:

* And free from false-positive trojan pop-ups.


.

BLACKFIRE69 13-03-2024 05:23

^^^

i forgot to mention some facts regarding 'ISArcExAddDisksEx' in the above post.


Code:

* 'BaseDirInArc' is case-sensitive.
  - 'Bin' and 'bin' are not the same.

* You can also use it with sub-dirs like this:
  - ISArcExAddDisksEx('C:\Test\data-langs.bin', 'MyPwd', 'Bin64\Eng', 'D:\Test\Output');


ozerune 24-03-2024 17:52

I'm very new to directly interacting with Inno and am trying to start here. So I tried to add the razor stdio patch, some xtool libraries, and 7zdll by adding them to arc.ini, the definitions, and the 2 locations where those definitions are checked. I also changed the name of one of the disk file names in the adding disks section. When I run it, it hangs after unpacking the temp folder for about 25 seconds and gives me an error. This works just fine when unpacking it with my own FreeArc setup. The error code is -11. After changing everything back to what it was before and only using built in compressors, I still get the same error. Am I doing something wrong here?

Dragonis40 30-04-2024 11:00

Good evening! I currently use last version of IsArcEx.dll in my scripts, but I often notice that "average speed" parameter is negative, while "current speed" parameter is constant and it seems doesn't change. Is it a bug? Do I forget anything in my code?

Thanks for your reply!

BLACKFIRE69 14-05-2024 04:22

ISArcEx Update
 
Quote:

Originally Posted by Dragonis40 (Post 504370)
Good evening! I currently use last version of IsArcEx.dll in my scripts, but I often notice that "average speed" parameter is negative, while "current speed" parameter is constant and it seems doesn't change. Is it a bug? Do I forget anything in my code?

Thanks for your reply!


ISArcEx Update - [2024-May-14]


Code:

* Updated 'AvgSpeed'.
* Added two new functions:
  - function ISArcExGetTotalSizeMBOfAllDisks: Integer;
  - function ISArcExGetExtractedSizeMBOfAllDisks: Integer;


The first post has been updated.

Masquerade 20-05-2024 13:11

@BLACKFIRE69

You may remember I had some issues with the font in my setup not displaying correctly. Strangely, since yesterday this issue has fixed itself. There are two possible solutions:

- my AMD graphics driver updated

- I changed my monitor configuration so my second monitor is on my left instead of on my right.

Do either of these make any sense to you? Having a second monitor on the left bugs the CODEX installer so it does have some weird impact on Inno setup.

BLACKFIRE69 21-05-2024 03:12

Quote:

Originally Posted by Masquerade (Post 504575)
@BLACKFIRE69

You may remember I had some issues with the font in my setup not displaying correctly. Strangely, since yesterday this issue has fixed itself. There are two possible solutions:

- my AMD graphics driver updated

- I changed my monitor configuration so my second monitor is on my left instead of on my right.

Do either of these make any sense to you? Having a second monitor on the left bugs the CODEX installer so it does have some weird impact on Inno setup.



yes, i remember that, but it's related to the FMXInno, not to ISArcEx, right?


it's interesting that your issues with InnoSetup resolved after updating your graphics drivers and changing your dual monitor configuration.


* Graphics Driver Update:

updating graphics drivers can resolve a wide range of issues. it's possible that the older driver had problems with rendering or handling specific display configurations, which were resolved in the new driver update.

* Dual Monitor Configuration:

changing the position of your secondary monitor could have reset or corrected certain display settings. sometimes, the operating system or the graphics driver might have trouble correctly rendering content on a multi-monitor setup, especially if the setup has non-standard configurations or resolutions. by changing the monitor layout, the system may have reinitialized the display settings, fixing the rendering issues.

* Resolution and DPI Settings:

alterations in monitor configuration can also impact the resolution and DPI settings. if the secondary monitor had a different DPI setting or resolution, changing its position could have forced the system to re-evaluate and apply new settings, potentially fixing issues related to rendering.

Masquerade 23-05-2024 01:06

Oh, apologies, didn't mean to post in the wrong topic. I guess I got confused :eek:

Dragonis40 14-08-2024 05:15

Good morning everybody! I currently use IsArcx.dll for my setup.exe, but i've noticed a couple of things. When .dll file counts the files included in the .bin file that is being installed, it counts the number of files AND the number of folders included in videogame' directory.
Concerning the total aount of files, it counts the total number of files and the number of folders times the number of total .bin files. Is it like thtat? Why? Is it a bug?

BLACKFIRE69 14-12-2024 06:03

ISArcExM
 
1 Attachment(s)
This is an example of how to use ISArcEx.dll with an installer created in Delphi, intended to load the DLL from the temp directory, as requested.


Code:

LibPath := IncludeTrailingPathDelimiter(ExtractFilePath(ParamStr(0))) + 'bin\';

if not Assigned(ISArcExCl) then
  ISArcExCl := TISArcExM.Create(LibPath);

.

EmirHasan 18-01-2025 01:27

Hello, first of all thank you very much for this wonderful forum I have benefited from it a lot and I apologize if my English is weak, I will talk in detail about the problem I am facing which is: I was working on Redshank[20.08].iss and I was working and compressing files using FreeARC and the following command line:

Quote:

@echo off
freearc a -r -m9 -ep1 -hp -pOceanBox443 OceanData.bin * -xzNewRun.bat
pause
This topic is successful, but I used a more powerful file compression tool "Mini Compressor" and tried compression using the following tools:
Quote:

precomp+nz+static2+XLolz/$bitmapz=bmpz/$bink=bink/$void=void/$photo=jpg/$ogg=ogg/$wavz=wvp/$mp3=mpz
But when exporting the Setup file from Scirpt Inno, I get the clear error in the image :

https://www2.0zz0.com/2025/01/18/08/864756994.png

I tried to add a modification to the arc.ini text:

Quote:

[External compressor : precomp]
header = 0
packcmd = "PreComp\precomp" -cn -intense -ostdout <stdout> $$arcdatafile$$.tmp
unpackcmd = "PreComp\precomp" -ostdout -r stdin <stdin> <stdout>
But I also did not succeed, and this is the closest topic in the forum to solving the problem

nordi 18-01-2025 03:20

Question - ISArcEx + new InnoSetup 6.4.0
 
2 Attachment(s)
Hi there...

InnoSetup 6.4.0 / Win11 : Does anyone have the same problems with the example script ?!

> "MainForm" = identifier error

> using "IsArcExChangeLanguage" = Windows Defender popup

(see pictures)

greetz

nordi 18-01-2025 04:41

1 Attachment(s)
Hi audiofeel,

thx for the answer, with your advice it`s working in IS6.4.0...
-------
But:
I want to use command IsArcExChangeLanguage :
because using different ini-files , I can let translate the messages in different languages while installing...

>> Windows Defender popup :

Solved >> "every pc restart is good" + new GUID :rolleyes: > working now

*perhaps it was the security block in the file properties too


All times are GMT -7. The time now is 17:15.

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