Skip to content

install (Windows): User PATH registry entry mojibakes non-ASCII install dir and is never removed on uninstall #2117

Description

@DeusData

Summary

On Windows, the real install flow registers its install directory into the persistent HKCU User Path registry value, and:

  1. Mojibakes non-ASCII bytes when writing the value — e.g. an install dir install_Ωμέγα is stored as install_O<replacement>??a. The value is written through a non-wide/ANSI path instead of the UTF-16 registry API.
  2. Never removes the entry on uninstall — every install/uninstall cycle leaves its (often mangled) entry behind, so the User Path grows without bound.

Impact

  • Non-ASCII install locations get a corrupted Path entry (the installed binary may not be found on that PATH).
  • Repeated install/uninstall accumulates dead entries; observed a User Path bloated to ~8000 chars on a Windows test host, to the point that the shell's effective PATH became empty and broke tooling.

Expected

  • Write the install dir to the User Path via the wide (UTF-16) registry API so non-ASCII survives the round-trip.
  • uninstall removes exactly the entry install added — and only that entry — leaving unrelated PATH entries byte-for-byte intact.

Scope

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsWindows-specific issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions