Skip to content

MSI: Registry entries not removed during uninstall #2554

@lrandersson

Description

@lrandersson

Describe the bug

When I run the uninstaller (MSI) the registry entries that were created during the installation are not removed. All of the registry entries in both locations:

  1. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders
    One registry entry here for each installed file
  2. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{GUID}
    still exist after uninstalling.

Unclear if there are any other registry entries created, but these are the ones I've seen.

Steps to reproduce

  1. Build an installer according to the instructions here Initial MSI implementation, based on Briefcase conda/constructor#1084 (comment)
  2. Run the installer with all the default options/settings (I only tried this so far when installed as "For me").
  3. Verify the registry entries exist.
  4. Uninstall the software again via the "Add or remove programs".
  5. Confirm that the registry entries that they still exist.

Expected behavior

Registry entries created by the MSI installer are removed after uninstallation.

Screenshots

No response

Environment

  • Operating System: Windows 11
  • Python version: 3.13
  • Software versions:
    • Briefcase: Listed in the link for reproducing the issue
    • Toga: None (I think?)
    • ...

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationAn improvement required in the project's documentation.windowsThe issue relates to Microsoft Windows support.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions