Removed Cancel commands randomly placed in script

pull/243/head
Richard Newton 6 years ago committed by GitHub
parent 5dd272e184
commit a1543ae59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -657,8 +657,6 @@ Switch ($Prompt1) {
No {
= $No
}
Cancel {
}
}
#Prompt asking to delete OneDrive
$Prompt4 = [Windows.MessageBox]::Show($OneDriveDelete, "Delete OneDrive", $Button, $ErrorIco)
@ -670,8 +668,6 @@ Switch ($Prompt1) {
No {
= $No
}
Cancel {
}
}
#Prompt asking if you'd like to reboot your machine
$Prompt5 = [Windows.MessageBox]::Show($Reboot, "Reboot", $Button, $Warn)
@ -694,8 +690,6 @@ Switch ($Prompt1) {
Start-Sleep 2
Exit; = $No
}
Cancel {
}
}
}
No {
@ -713,8 +707,6 @@ Switch ($Prompt1) {
No {
= $No
}
Cancel {
}
}
#Prompt asking if you'd like to reboot your machine
$Prompt7 = [Windows.MessageBox]::Show($Reboot, "Reboot", $Button, $Warn)
@ -737,10 +729,6 @@ Switch ($Prompt1) {
Start-Sleep 2
Exit; = $No
}
Cancel {
}
}
}
Cancel {
}
}

Loading…
Cancel
Save