Skip to content

fix(windows): installer.iss comment broke Inno section parsing#233

Merged
BitHighlander merged 1 commit into
developfrom
fix/inno-installer-iss-code-comment
Jun 10, 2026
Merged

fix(windows): installer.iss comment broke Inno section parsing#233
BitHighlander merged 1 commit into
developfrom
fix/inno-installer-iss-code-comment

Conversation

@BitHighlander

Copy link
Copy Markdown
Collaborator

Problem

The manual Windows installer build (scripts/build-windows-production.ps1 → ISCC on scripts/installer.iss) fails to compile:

Error on line 96 in scripts\installer.iss: Invalid section tag.
Compile aborted.

Line 96 is part of a Pascal { } comment inside the [Code] section (the per-user-install stale-install warning). The line begins, after indentation, with [Code]:

{ Skip the prompt on /SILENT|/VERYSILENT -- /SUPPRESSMSGBOXES does NOT suppress
  [Code] MsgBox, so an unattended install would hang here. The install still
  proceeds; the warning is informational only. }

Inno Setup determines section boundaries by scanning for lines that start with [ before Pascal { } comments are parsed, so it treats [Code] MsgBox, ... as a malformed section header and aborts (ISCC exit 2). This only affects the manual Windows/Inno build; CI's macOS/Linux builds never touch installer.iss.

Fix

Reword the comment so no line starts with [. Comment-only change — no installer behavior change.

Verification

Built and signed KeepKey-Vault-1.4.3-win-x64-setup.exe from this change: Inno compile succeeds, installer Authenticode is Valid + RFC3161 timestamped.

🤖 Generated with Claude Code

…er.iss comment

The per-user-install warning comment in InitializeSetup wrapped onto a line
beginning (after indentation) with "[Code]". Inno Setup splits sections by
scanning for lines that start with "[" before it parses Pascal { } comments,
so it read "[Code] MsgBox, ..." as a malformed section header and aborted with
"Error on line 96 ... Invalid section tag", breaking the Windows installer
build (ISCC exit 2).

Reword the comment so no line starts with "[". Comment-only change; no
installer behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@BitHighlander
BitHighlander requested a review from pastaghost as a code owner June 8, 2026 00:14
@BitHighlander
BitHighlander merged commit 81a03d5 into develop Jun 10, 2026
@BitHighlander
BitHighlander deleted the fix/inno-installer-iss-code-comment branch June 10, 2026 04:00
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.

1 participant