ExtractArchive fails on Windows due to long paths in archive

20 views
Skip to first unread message

Tom G

unread,
Nov 18, 2025, 4:03:42 PM (11 days ago) Nov 18
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.
Reply all
Reply to author
Forward
0 new messages