Skip to content

Commit

Permalink
fix(RemoveEdge): put $user under AppX
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Dec 30, 2023
1 parent 4a79517 commit 72e7cbc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ $host.UI.RawUI.WindowTitle = "EdgeRemover $version | made by @he3als"

# credit to ave9858 for Edge removal method: https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6
$ProgressPreference = "SilentlyContinue"
$user = $env:USERNAME
$SID = (New-Object System.Security.Principal.NTAccount($user)).Translate([Security.Principal.SecurityIdentifier]).Value
$EdgeRemoverReg = 'HKLM:\SOFTWARE\EdgeRemover'

if ($Exit -and ((-not $UninstallAll) -and (-not $UninstallEdge))) {
Expand Down Expand Up @@ -223,6 +221,9 @@ function RemoveEdgeChromium {
}

function RemoveEdgeAppX {
$user = $env:USERNAME
$SID = (New-Object System.Security.Principal.NTAccount($user)).Translate([Security.Principal.SecurityIdentifier]).Value

# remove from Registry
$appxStore = '\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore'
$pattern = "HKLM:$appxStore\InboxApplications\Microsoft.MicrosoftEdge_*_neutral__8wekyb3d8bbwe"
Expand Down

0 comments on commit 72e7cbc

Please sign in to comment.