Professional Documents
Culture Documents
Uninstall Chrome
Uninstall Chrome
"
cmd /c taskkill /IM Chrome.exe /F
If(!$ChromeRegKey.PSChildName){
Write-Host "Google Chrome not found in HKEY_CLASSES_ROOT\Installer\Products\"
}
If($ChromeRegKey.PSChildName){
$ChromeDirToDelete = "HKLM:\Software\Classes\Installer\Products\" +
$ChromeRegKey.PSChildName
Write-Host "Google Chrome directory to delete:" $ChromeDirToDelete
Remove-Item -Path $ChromeDirToDelete -Force -Recurse
}