mirror of
https://github.com/fosrl/olm.git
synced 2026-03-08 23:03:12 -05:00
[PR #52] [MERGED] Fix Windows uninstaller deleting entire System PATH instead of OLM entry #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/olm/pull/52
Author: @Copilot
Created: 11/11/2025
Status: ✅ Merged
Merged: 11/14/2025
Merged by: @oschwartz10612
Base:
main← Head:copilot/fix-system-path-removal📝 Commits (3)
d910034Initial plan1168f55Fix Windows PATH removal issue by implementing custom uninstall procedure91f0230Refactor PATH removal to use TStringList for more robust parsing📊 Changes
1 file changed (+67 additions, -3 deletions)
View changed files
📝
olm.iss(+67 -3)📄 Description
Uninstalling OLM on Windows 11 removes the entire System PATH variable, breaking system commands like
pingandroute. The Inno Setupuninsdeletevalueflag deletes the entire registry value rather than removing a specific entry from the semicolon-delimited list.Changes
uninsdeletevalueflag from Registry section to prevent PATH deletionRemovePathEntry()procedure that:TStringListwith semicolon delimiterCompareTextwith trimmingCurUninstallStepChanged()hook to invoke removal during uninstallExample
Before (user reported):
After this fix:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.