cloudflare / cloudflare/cloudflared

🐛Windows Uninstall Leaves Path Environment Variable Entry

Open
#1,050 0 comments 0 reactions 0 assignees View on GitHub
Priority: Normal Type: Bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.