7
7ech
Guest
I am trying to script (using Powershell) to silently uninstall MS Visual C++ 2017. The method that will uninstall this is by going through Programs and Features from the Control Panel or from the command line using vcredist_x86.exe /uninstall to uninstall.
I have tried many different methods, that I know off in Powershell to uninstall but none work:
$DetectedUninstallStrings = (Get-InstalledApplication -Name "Microsoft Visual C++ 2017").UninstallSubkey ForEach ($UninstallString in $DetectedUninstallStrings) { Execute-MSI -Action "Uninstall" -Path "$UninstallString" -ContinueOnError $True }
Nor using:
$app = Get-WmiObject –Class Win32_Product | Where-Object {$_.Name -like "* C++ 2017 *"}
$app.Uninstall()
Nor using the GUID to uninstall, only by using the Program and Features or the command line to uninstall.
Does anyone have any ideas on how I can uninstall this silently by using Powershell?
Thank you,
Continue reading...
I have tried many different methods, that I know off in Powershell to uninstall but none work:
$DetectedUninstallStrings = (Get-InstalledApplication -Name "Microsoft Visual C++ 2017").UninstallSubkey ForEach ($UninstallString in $DetectedUninstallStrings) { Execute-MSI -Action "Uninstall" -Path "$UninstallString" -ContinueOnError $True }
Nor using:
$app = Get-WmiObject –Class Win32_Product | Where-Object {$_.Name -like "* C++ 2017 *"}
$app.Uninstall()
Nor using the GUID to uninstall, only by using the Program and Features or the command line to uninstall.
Does anyone have any ideas on how I can uninstall this silently by using Powershell?
Thank you,
Continue reading...