浏览代码

Removed Cancel commands randomly placed in script

Richard Newton 6 年之前
父节点
当前提交
a1543ae59f
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      Windows10Debloater.ps1

+ 0 - 12
Windows10Debloater.ps1

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