[Bug] Inno Setup compilation fails due to Windows MAX_PATH limit with nested HuggingFace cache paths
Status Closed — not planned
Reported on v2.1.218
Maintainer reply None cached
Activity 1 comment · opened Aug 6, 2026 · closed Aug 20, 2026
Bug Description
Inno Setup compile failed with error "The system cannot find the path specified" during compression.
Error analysis:
- Long Path Limit (MAX_PATH 260 chars): Deeply nested HuggingFace cache paths inside PyInstaller dist directory (e.g.
_internal\huggingface_cache\hub\models--sentence-transformers\...) combined with relative paths (..\..\) exceed Windows path limits. - Inno Setup macro
{#BundleSourceDir}resolves to an overly long relative path.
Please fix this in setup_script.iss and the build script (e.g., scripts/build_all.py):
- Create a Clean Staging Directory: Update the python/bat build script to stage/copy all output files (
AutoCAD DLL,GstarCAD DLL, andPyInstaller dist) into a flat, shallow staging folder (e.g.,build/stage/) before running Inno Setup. - Clean up HuggingFace Cache Structure:
- Move or copy sentence-transformer model files to a shallow directory (e.g.,
_internal/models/sentence_transformer) instead of keeping the deep HuggingFace.cache/hub/models--...folder structure. - Exclude unnecessary temporary files/caches from being packed by Inno Setup.
- Update Inno Setup Script (
setup_script.iss):
- Ensure
{#BundleSourceDir}points to the clean, shallow staging folder using an absolute or short relative path. - Verify all
Source:definitions do not break MAX_PATH limits.
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.218
- Feedback ID: f36daf9f-ad4b-48ab-b7c0-8fc67887d334
Errors
[{"error":"TelemetrySafeError: VirtualMessageList: itemKeys/messages length desync (keys=62 messages=61 range=[44,62))\n at i3b (B:/~BUN/root/src/entrypoints/cli.js:18388:8188)\n at Flf (B:/~BUN/root/src/entrypoints/cli.js:18388:1103)\n at Jn (B:/~BUN/root/src/entrypoints/cli.js:2101:21364)\n at fS (B:/~BUN/root/src/entrypoints/cli.js:2101:40461)\n at lO (B:/~BUN/root/src/entrypoints/cli.js:2101:51387)\n at iLe (B:/~BUN/root/src/entrypoints/cli.js:2101:89050)\n at oLe (B:/~BUN/root/src/entrypoints/cli.js:2101:88003)\n at cge (B:/~BUN/root/src/entrypoints/cli.js:2101:87823)\n at X9 (B:/~BUN/root/src/entrypoints/cli.js:2101:84092)\n at Pt (B:/~BUN/root/src/entrypoints/cli.js:2101:6664)","timestamp":"2026-08-05T06:12:16.370Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗