1@echo off 2 3echo Uninstalling MSVC integration... 4 5REM In general this script should not be used except for development and testing 6REM purposes. The proper way to install is via the VSIX, and the proper way to 7REM uninstall is through the Visual Studio extension manager. 8 9REM CD to the directory of this batch file. 10cd /d %~dp0 11 12SET VCTargets=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets 13 14ECHO Uninstalling Common Files 15IF EXIST "%VCTargets%\LLVM.Cpp.Common.props" del "%VCTargets%\LLVM.Cpp.Common.props" 16IF EXIST "%VCTargets%\LLVM.Cpp.Common.targets" del "%VCTargets%\LLVM.Cpp.Common.targets" 17 18ECHO Uninstalling x64 Platform Toolset 19SET PlatformToolsets=%VCTargets%\Platforms\x64\PlatformToolsets 20IF EXIST "%PlatformToolsets%\llvm\Toolset.props" del "%PlatformToolsets%\llvm\Toolset.props" 21IF EXIST "%PlatformToolsets%\llvm\Toolset.targets" del "%PlatformToolsets%\llvm\Toolset.targets" 22IF EXIST "%PlatformToolsets%\llvm" rd "%PlatformToolsets%\llvm" 23 24ECHO Uninstalling Win32 Platform Toolset 25SET PlatformToolsets=%VCTargets%\Platforms\Win32\PlatformToolsets 26IF EXIST "%PlatformToolsets%\llvm\Toolset.props" del "%PlatformToolsets%\llvm\Toolset.props" 27IF EXIST "%PlatformToolsets%\llvm\Toolset.targets" del "%PlatformToolsets%\llvm\Toolset.targets" 28IF EXIST "%PlatformToolsets%\llvm" rd "%PlatformToolsets%\llvm" 29 30ECHO Uninstalling C++ Settings UI 31IF EXIST "%VCTargets%\1033\llvm-general.xml" del "%VCTargets%\1033\llvm-general.xml" 32 33echo Done! 34