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