cloudflare / cloudflare/cloudflared
🐛Windows Uninstall Leaves Path Environment Variable Entry
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Using "Add or Remove Programs" from within Windows will leave the Path environment variable entry in place.
**To Reproduce**
Steps to reproduce the behavior:
1. Run the .msi installer for cloudflared
2. Observe path entry with `[System.Environment]::GetEnvironmentVariable("Path","Machine") -split ";"`
3. Remove cloudflared with "Add or Remove Programs"
4. Observe path entry with `[System.Environment]::GetEnvironmentVariable("Path","Machine") -split ";"` noting that the cloudflared entry still exists
**Expected behavior**
A clear and concise description of what you expected to happen.
I expect the Path Environment variable to not include the cloudflared entry
**Environment and versions**
- OS: Windows (tested on Windows Server 2016 and Windows 11)
- Architecture: Intel 64-bit
- Version: 2023.7.2
Contributor guide
Assessment
This issue has not been assessed yet.