Skip to content

Commit

Permalink
refactor(edge): merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jul 11, 2023
1 parent 19fa4d8 commit 7168ab6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Executables/Atlas/1. Software/Remove Edge.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[CmdletBinding()]
param (
[Switch]$RemoveAllEdgeSilent
[Switch]$RemoveAllEdge
)

$ProgressPreference = "SilentlyContinue"
Expand Down Expand Up @@ -69,17 +69,11 @@ function UninstallAll {
}
}

if ($RemoveAllEdgeSilent) {
if ($RemoveAllEdge) {
$removeWebView = $true
UninstallAll
}

if (!(Test-Path "C:\Program Files (x86)\Microsoft\Edge")) {
Write-Host "It seems like Edge is already uninstalled."
Write-Host "Running this script anyways can cause errors.`n"
PauseNul "Press any key to continue anyways... "
}

if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
Start-Process PowerShell "-NoProfile -ExecutionPolicy Unrestricted -File `"$PSCommandPath`"" -Verb RunAs; exit
}
Expand Down

0 comments on commit 7168ab6

Please sign in to comment.