ExtractArchive fails on Windows due to long paths in archive

66 views
Skip to first unread message

Tom G

unread,
Nov 18, 2025, 4:03:42 PM11/18/25
to innosetup
Hello,

I found a problem where ExtractArchive fails on Windows when the total path becomes too long.

The problem happens because:

1. The .7z archive I use itself has a complex structure with many folders, subfolders, and long filenames.
2. When I extract it to a target folder that is also long, the full path (target folder + archive's internal paths) exceeds the Windows limit.

This causes the error:
ERROR: Function Extract returned error code -2147467259

However, when I use an external 7za.exe from the command line on the same Windows machine, it extracts the same archive to the same long path without any problems.

Martijn Laan

unread,
Jan 13, 2026, 10:42:03 AM (10 days ago) Jan 13
to innosetup
Hi,

Op 18-11-2025 om 21:43 schreef Tom G:
I found a problem where ExtractArchive fails on Windows when the total path becomes too long.

Inno Setup 7, which is still a work in progress, will support long path names, called extended-length paths or super paths. This will make ExtractArchive work with your archive as well.

Greetings,
Martijn

Tom G

unread,
Jan 14, 2026, 5:59:42 AM (9 days ago) Jan 14
to innosetup
Thank you for your response.
Best,
Tom

Reply all
Reply to author
Forward
0 new messages