Skip to content

Commit 0acdc13

Browse files
committed
fix(v1.1.1): general fixes
1 parent 1c11db3 commit 0acdc13

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

RemoveEdge.ps1

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,18 @@ if ($null -ne $(whoami /user | Select-String "S-1-5-18")) {
112112
}
113113
}
114114

115+
$removeWebView = $true
116+
$removeData = $true
117+
115118
if ($Exit) {
116-
$removeData = $true
117-
$removeWebView = $true
118119
UninstallAll
119-
if ($Exit) {exit} else {}
120+
exit
120121
}
121122

122-
$removeWebView = $true
123-
$removeData = $true
124123
if (!($UninstallAll)) {
125124
while (!($continue)) {
126125
Clear-Host; Write-Host "This script will remove Microsoft Edge, as once you install it, you can't normally uninstall it.
127-
Major credit to ave9858: https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6`n" -ForegroundColor Yellow
126+
Major credit to ave9858: https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6`n" -ForegroundColor Yellow
128127

129128
if ($removeWebView) {$colourWeb = "Green"; $textWeb = "Selected"} else {$colourWeb = "Red"; $textWeb = "Unselected"}
130129
if ($removeData) {$colourData = "Green"; $textData = "Selected"} else {$colourData = "Red"; $textData = "Unselected"}

0 commit comments

Comments
 (0)