Forráskód Böngészése

Fixed Revert /Noninteractive switch statement

On line 410 if you chose to run Interactively and wanted to Revert changes it would tell you that the Revert switch statement was not recognized. This is now fixed.

On line 450 if you chose to use the Noninteractive method it wasn't recognized. This is now fixed as well.
Richard Newton 7 éve
szülő
commit
ac34625cc4
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      Windows10Debloater.ps1

+ 2 - 2
Windows10Debloater.ps1

@@ -407,7 +407,6 @@ Switch ($ReadHost) {
                     }
                     }
                 }
                 }
             }
             }
-        }
         Revert {
         Revert {
             Write-Output "Reverting changes..."
             Write-Output "Reverting changes..."
             Write-Output "Creating PSDrive 'HKCR' (HKEY_CLASSES_ROOT). This will be used for the duration of the script as it is necessary for the modification of specific registry keys."
             Write-Output "Creating PSDrive 'HKCR' (HKEY_CLASSES_ROOT). This will be used for the duration of the script as it is necessary for the modification of specific registry keys."
@@ -443,6 +442,7 @@ Switch ($ReadHost) {
                     Stop-Transcript
                     Stop-Transcript
                     Sleep 2
                     Sleep 2
                     Exit; $PublishSettings = $No
                     Exit; $PublishSettings = $No
+                    }
                 }
                 }
             }
             }
         }
         }
@@ -483,7 +483,7 @@ Switch ($ReadHost) {
                 Stop-Transcript
                 Stop-Transcript
                 Sleep 2
                 Sleep 2
                 Exit; $PublishSettings = $Revert
                 Exit; $PublishSettings = $Revert
+                }
             }
             }
         }
         }
     }
     }
-}