Skip to content

Say which file type the installer associates, and honour the choice#34

Merged
xroche merged 1 commit into
masterfrom
fix/installer-name-file-association
Jul 18, 2026
Merged

Say which file type the installer associates, and honour the choice#34
xroche merged 1 commit into
masterfrom
fix/installer-name-file-association

Conversation

@xroche

@xroche xroche commented Jul 17, 2026

Copy link
Copy Markdown
Owner

The setup's file-types checkbox named no extension, so there was no way to decide whether to want it. It now says what it does: it associates .whtt and adds the Explorer "New > WinHTTrack Project" entry.

Unchecking it did not actually prevent the association. The installer's task only writes uninstall markers and SetupHasRegistered; the association itself is RegisterShellFileTypes() in WinHTTrack.cpp, which ran unconditionally. It is now gated on the same condition that already guarded the ShellNew entry, so a portable run still associates and an installed one obeys the checkbox. Naming the extension without this would have made the label precise and still wrong. The installer has no [Languages] or [CustomMessages] section, so there is no translated copy of this string to update.

Closes #187

The setup's file-types task named no extension, so the user could not tell
what unchecking it would cost. Name it: .whtt, plus the Explorer "New >
WinHTTrack Project" entry.

Unchecking it did not prevent the association anyway. The task only writes
uninstall markers and SetupHasRegistered, while RegisterShellFileTypes() ran
unconditionally in InitInstance. Gate it on the condition that already
guarded the ShellNew entry, so a portable run associates as before and an
installed one obeys the checkbox.

Closes #187

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Xavier Roche <roche@httrack.com>
@xroche
xroche merged commit d8efc88 into master Jul 18, 2026
3 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.

1 participant