diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 5b78cf1c..5dbaef34 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -69,4 +69,10 @@ function Invoke-WindowsInstallation([Context] $context) New-PersonalUser $context; Restore-WindowsInstallation $context; + Uninstall-Package -Force Selenium.WebDriver; + Uninstall-Module -Force "NuGet"; + choco uninstall -y selenium-gecko-driver; + winget uninstall --force AutoHotkey.AutoHotkey; + Set-Location ~; + Remove-Item -Recurse "$PSScriptRoot/../../.."; } diff --git a/scripts/Windows/OS/Manage.ps1 b/scripts/Windows/OS/Manage.ps1 index bcc85ca4..fe2a0c2e 100644 --- a/scripts/Windows/OS/Manage.ps1 +++ b/scripts/Windows/OS/Manage.ps1 @@ -50,6 +50,4 @@ function Restore-WindowsInstallation([Context] $context) { Restore-PersonalApps $context; Remove-Item -Recurse $context.RootDir; $context.Cleanup(); - Set-Location ~; - Remove-Item -Recurse "$PSScriptRoot/../../.."; }