Skip to content

installer: fix Inno Setup [Code] comment closing early on {app}#451

Merged
FMXExpress merged 1 commit into
mainfrom
claude/installer-iss-comment-fix
Jul 17, 2026
Merged

installer: fix Inno Setup [Code] comment closing early on {app}#451
FMXExpress merged 1 commit into
mainfrom
claude/installer-iss-comment-fix

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

The failure

The v0.1.3 release's windows-installers job failed:

Error on line 178 in installer\pasclaw.iss: Column 31: Identifier expected.
Compile aborted.

Cause

The uninstall step's comment contained {app}. In Inno Setup's Pascal [Code], { } are comment delimiters — so the } inside {app} closed the comment early, and the text after it (to exactly one hive…) was parsed as code → "Identifier expected". ISCC only runs at release time (never in the normal FPC/Delphi builds), so this slipped through PR #449 and only surfaced when v0.1.3 was published.

Fix

  • Reword the comment to avoid literal braces (no {app} in [Code] comments).
  • Add .github/workflows/installer-check.yml: on any installer/** change, compile pasclaw.iss with ISCC (both arches, dummy payload) so a script/[Code] syntax error is caught at PR time instead of during a release. This PR exercises that check on itself.

Re-releasing v0.1.3

Once this is merged to main, re-run Release artifacts → Run workflow with tag v0.1.3 (the PasClaw-x64.exe / PasClaw-x86.exe are already attached to the release, so it just repackages). The Linux tarballs from the failed run already uploaded fine.

🤖 Generated with Claude Code


Generated by Claude Code

The uninstall comment contained "{app}", and in Inno Setup's Pascal [Code]
{ } are comment delimiters -- so the } in {app} closed the comment early and
the following text parsed as code, failing ISCC with "line 178: Identifier
expected". This only surfaced at release time (ISCC never runs otherwise), so
the v0.1.3 windows-installers job failed. Reword the comment to avoid braces.

Add .github/workflows/installer-check.yml: on any installer/** change it runs
ISCC against pasclaw.iss (both arches, dummy payload) so a script/[Code]
syntax error is caught at PR time instead of only during a release.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LGQKz579j1ZnDRwmr6h1V6
@FMXExpress
FMXExpress merged commit d39d5a9 into main Jul 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants