Skip to content

Commit

Permalink
Remove Edge from Start Menu and Desktop (#898)
Browse files Browse the repository at this point in the history
* Update edgeremoval.bat

* Fix Edge not being deleted from Desktop
  • Loading branch information
antunnitraj authored Jul 21, 2023
1 parent 8efc8aa commit 2d73631
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion edgeremoval.bat
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ foreach ($i in $remove_appx) {
dir "$store\Deleted\EndOfLife" -rec -ea 0 |where {$_ -like "*${i}*"} |foreach {cmd /c "reg delete ""$($_.Name)"" /f >nul 2>nul"}
}
## extra cleanup
$desktop = $([Environment]::GetFolderPath('Desktop')); $appdata = $([Environment]::GetFolderPath('ApplicationData'))
$desktop = $([Environment]::GetFolderPath('Desktop')); $publicDesktop = Join-Path -Path $env:PUBLIC -ChildPath 'Desktop'; $appdata = $([Environment]::GetFolderPath('ApplicationData')); $programsFolder = Join-Path -Path $env:ProgramData -ChildPath 'Microsoft\Windows\Start Menu\Programs'
del "$appdata\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Tombstones\Microsoft Edge.lnk" -force -ea 0
del "$appdata\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk" -force -ea 0
del "$desktop\Microsoft Edge.lnk" -force -ea 0
del "$publicDesktop\Microsoft Edge.lnk" -force -ea 0
del "$programsFolder\Microsoft Edge.lnk" -force -ea 0

## add OpenWebSearch to redirect microsoft-edge: anti-competitive links to the default browser
$IFEO = 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options'
Expand Down

0 comments on commit 2d73631

Please sign in to comment.