By default, the path of the tool is as follows. Right-click Command Prompt, and then choose Run as administrator.Įnter the full path of the InstallCleanup.exe tool and add the command-line switch you prefer.Type cmd in the 'Type here to search' box.To open an administrator command prompt, follow these steps: Here's how to run the InstallCleanup.exe tool: Use this switch if you intend to remove Visual Studio without reinstalling it later. This switch removes the main installation directory, product information, and most other features installed outside the installation directory, that might also be shared with other Visual Studio installations or other products.
If a value is specified, only products with a version that start with this string value will be removed. Use this switch if you intend to reinstall the same version of Visual Studio after you run the InstallCleanup.exe tool. It removes only the main installation directory and product information. This switch is the default if no other switch is passed. You can use either of the following command-line switches with the InstallCleanup.exe tool: Switch This tool might uninstall features from other Visual Studio installations or other products, which then might also need to be repaired or reinstalled. Use the InstallCleanup tool only as a last resort if repair or uninstall fail.