Remove all unwanted installation artifacts

This commit is contained in:
Manuel Thalmann 2023-08-01 13:24:08 +02:00
parent cf065edc4f
commit b7fb6de569
2 changed files with 6 additions and 2 deletions

View file

@ -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/../../..";
}

View file

@ -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/../../..";
}