Skip to content

Commit

Permalink
fix: only write term processes when uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Mar 28, 2024
1 parent e5d28ad commit df2f535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RemoveEdge.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ function Uninstall-MsiexecAppByName {
}

function KillEdgeProcesses {
Write-Status "Terminating Microsoft Edge processes..."
$ErrorActionPreference = 'SilentlyContinue'
foreach ($service in (Get-Service -Name "*edge*" | Where-Object {$_.DisplayName -like "*Microsoft Edge*"}).Name) {
Stop-Service -Name $service -Force
Expand All @@ -142,7 +141,8 @@ function KillEdgeProcesses {

function RemoveEdgeChromium {
$baseKey = "HKLM:\SOFTWARE\WOW6432Node\Microsoft"


Write-Status "Terminating Microsoft Edge processes..."
KillEdgeProcesses

# check if 'experiment_control_labels' value exists and delete it if found
Expand Down

0 comments on commit df2f535

Please sign in to comment.