.RAR files extraction: the archive is corrupted

52 views
Skip to first unread message

Gal Dadon

unread,
Aug 22, 2025, 11:07:52 AMAug 22
to innosetup
[Setup]
AppName={#MyAppName}
AppVersion={#MyAppVersion}
DefaultDirName="{autopf}\{#MyAppName}"
ArchiveExtraction=full
DisableWelcomePage=yes
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyPage=yes

[Files]
Source: "C:\Users\gal\Downloads\test.rar"; DestDir: "{app}"; Flags: external extractarchive ignoreversion recursesubdirs

Screenshot 2025-08-22 180231.png

Debug logs:

[18:02:24.641]   -- Archive entry --
[18:02:24.648]   ERROR: Cannot open file as archive
[18:02:24.650]   Message box (Abort/Retry/Ignore):
C:\Users\gal\Downloads\test.rar

An error occurred while trying to extract an archive:
The archive is corrupted.


I am using Inno Setup 6.5.1, I verified the is7z.dll and compressed the rar file using winrar 5.0

The RAR file is not password protected, and no corrupted yet it fails. I tried with multiple rar files, it works on all other formats as specified in ExtractArchive(full) directive but not on .rar

Martijn Laan

unread,
Aug 22, 2025, 11:21:51 AMAug 22
to innosetup
Hi,

Thanks for the info.

If your test rar file works with 7-zip then can you please upload it somewhere?

Rar is an odd format compared to others from what I understood from the 7zip source code. Parts of it are proprietary / limited and I also think they have multiple formats but one extension, which doesn't help.

Just out of curiosity: any special reason why you're using winrar and not 7-zip?

Greetings,
Martijn



Op vr 22 aug , Gal Dadon <galda...@gmail.com> schreef:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/1d11d617-cc2b-4801-9243-0253697531c9n%40googlegroups.com.

Gal Dadon

unread,
Aug 22, 2025, 11:36:55 AMAug 22
to innosetup
I am using this to ship repacks which come in .RAR formats (Not made by me) and can get to 100GB, I'd much rather be able to operate directly on the RAR files instead of converting them

I attached the test.rar

Thank you very much!
test.rar

Martijn Laan

unread,
Aug 23, 2025, 2:20:34 AMAug 23
to innosetup
Hi,

Thank you.

Here's a build which supports RAR5, safe to use in production:
https://files.jrsoftware.org/is/dev/innosetup-6.5.2-dev.exe

Greetings,
Martijn

Op 22-8-2025 om 17:36 schreef Gal Dadon:

Gal Dadon

unread,
Aug 23, 2025, 7:46:18 AMAug 23
to innosetup
Works great! Thanks!!

Martijn Laan

unread,
Aug 23, 2025, 1:37:08 PMAug 23
to innosetup
You're welcome!

Thanks for the report and testing. 

Greetings,
Martijn 



Op za 23 aug , Gal Dadon <galda...@gmail.com> schreef:
Reply all
Reply to author
Forward
0 new messages