From 1cebd43fc525e85aed4a63b5a12cb14d2e4ff008 Mon Sep 17 00:00:00 2001 From: Diwie Date: Sun, 18 Oct 2026 11:37:21 +0200 Subject: [PATCH] docs: initialize VisualStudioUninstallAll --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..fc0fc61 --- /dev/null +++ b/README.md @@ -0,0 +1,50 @@ +# VisualStudioUninstallAll + +PowerShell utility to find and optionally uninstall Windows Installer (MSI) products registered under `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products` whose `DisplayName` contains **Visual Studio**. + +For troubleshooting broken Visual Studio installations. **Independent community utility; not affiliated with Microsoft.** Back up your system before uninstalling. Read-only by default. + +## Requirements + +- Windows PowerShell 5.1+ +- Administrator privileges for uninstalling + +## Usage + +Preview products (no changes): + +```powershell +.\VisualStudioUninstallAll.ps1 +``` + +Preview additional `vs_*` and `Microsoft.Maui.*` packages: + +```powershell +.\VisualStudioUninstallAll.ps1 -IncludeMauiAndVsPackages +``` + +Uninstall with per-product confirmations: + +```powershell +.\VisualStudioUninstallAll.ps1 -Uninstall +``` + +Uninstall the broader set without per-product confirmation (destructive; preview first): + +```powershell +.\VisualStudioUninstallAll.ps1 -Uninstall -IncludeMauiAndVsPackages -Confirm:$false +``` + +MSI verbose logs and `results.csv` are stored in `%TEMP%\VisualStudioUninstallAll`. Exit code 0 generally means success; 3010 means success with restart required. + +## Limitations + +- Only checks the SYSTEM (`S-1-5-18`) Windows Installer registry scope, not all per-user installations. +- Does not remove all Visual Studio installer metadata. +- Does not recover missing MSI caches. If the original source is unavailable, uninstall may fail with 1612 or 1714. +- Packages that mention Visual Studio might be shared; always review the preview first. +- Never deletes Windows Installer registry keys directly. + +## License + +GPL-3.0-only; see [LICENSE](LICENSE).