1@echo off
2
3echo Uninstalling MSVC integration...
4
5REM CD to the directory of this batch file.
6cd /d %~dp0
7
8set PLATFORM=None
9:LOOPHEAD
10IF %PLATFORM% == x64 GOTO LOOPEND
11IF %PLATFORM% == Win32 SET PLATFORM=x64
12IF %PLATFORM% == None SET PLATFORM=Win32
13
14
15SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms\%PLATFORM%\PlatformToolsets"
16IF EXIST %D%\LLVM-vs2010 del %D%\LLVM-vs2010\Microsoft.Cpp.%PLATFORM%.LLVM-vs2010.props
17IF EXIST %D%\LLVM-vs2010 del %D%\LLVM-vs2010\Microsoft.Cpp.%PLATFORM%.LLVM-vs2010.targets
18IF EXIST %D%\LLVM-vs2010 rmdir %D%\LLVM-vs2010
19SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\%PLATFORM%\PlatformToolsets"
20IF EXIST %D%\LLVM-vs2010 del %D%\LLVM-vs2010\Microsoft.Cpp.%PLATFORM%.LLVM-vs2010.props
21IF EXIST %D%\LLVM-vs2010 del %D%\LLVM-vs2010\Microsoft.Cpp.%PLATFORM%.LLVM-vs2010.targets
22IF EXIST %D%\LLVM-vs2010 rmdir %D%\LLVM-vs2010
23
24SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\%PLATFORM%\PlatformToolsets"
25IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012.props
26IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012.targets
27IF EXIST %D%\LLVM-vs2012 rmdir %D%\LLVM-vs2012
28IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012_xp.props
29IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012_xp.targets
30IF EXIST %D%\LLVM-vs2012_xp rmdir %D%\LLVM-vs2012_xp
31SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\%PLATFORM%\PlatformToolsets"
32IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012.props
33IF EXIST %D%\LLVM-vs2012 del %D%\LLVM-vs2012\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012.targets
34IF EXIST %D%\LLVM-vs2012 rmdir %D%\LLVM-vs2012
35IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012_xp.props
36IF EXIST %D%\LLVM-vs2012_xp del %D%\LLVM-vs2012_xp\Microsoft.Cpp.%PLATFORM%.LLVM-vs2012_xp.targets
37IF EXIST %D%\LLVM-vs2012_xp rmdir %D%\LLVM-vs2012_xp
38
39SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"
40IF EXIST %D%\LLVM-vs2013 del %D%\LLVM-vs2013\toolset.props
41IF EXIST %D%\LLVM-vs2013 del %D%\LLVM-vs2013\toolset.targets
42IF EXIST %D%\LLVM-vs2013 rmdir %D%\LLVM-vs2013
43IF EXIST %D%\LLVM-vs2013_xp del %D%\LLVM-vs2013_xp\toolset.props
44IF EXIST %D%\LLVM-vs2013_xp del %D%\LLVM-vs2013_xp\toolset.targets
45IF EXIST %D%\LLVM-vs2013_xp rmdir %D%\LLVM-vs2013_xp
46SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"
47IF EXIST %D%\LLVM-vs2013 del %D%\LLVM-vs2013\toolset.props
48IF EXIST %D%\LLVM-vs2013 del %D%\LLVM-vs2013\toolset.targets
49IF EXIST %D%\LLVM-vs2013 rmdir %D%\LLVM-vs2013
50IF EXIST %D%\LLVM-vs2013_xp del %D%\LLVM-vs2013_xp\toolset.props
51IF EXIST %D%\LLVM-vs2013_xp del %D%\LLVM-vs2013_xp\toolset.targets
52IF EXIST %D%\LLVM-vs2013_xp rmdir %D%\LLVM-vs2013_xp
53
54SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"
55IF EXIST %D%\LLVM-vs2014 del %D%\LLVM-vs2014\toolset.props
56IF EXIST %D%\LLVM-vs2014 del %D%\LLVM-vs2014\toolset.targets
57IF EXIST %D%\LLVM-vs2014 rmdir %D%\LLVM-vs2014
58IF EXIST %D%\LLVM-vs2014_xp del %D%\LLVM-vs2014_xp\toolset.props
59IF EXIST %D%\LLVM-vs2014_xp del %D%\LLVM-vs2014_xp\toolset.targets
60IF EXIST %D%\LLVM-vs2014_xp rmdir %D%\LLVM-vs2014_xp
61SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"
62IF EXIST %D%\LLVM-vs2014 del %D%\LLVM-vs2014\toolset.props
63IF EXIST %D%\LLVM-vs2014 del %D%\LLVM-vs2014\toolset.targets
64IF EXIST %D%\LLVM-vs2014 rmdir %D%\LLVM-vs2014
65IF EXIST %D%\LLVM-vs2014_xp del %D%\LLVM-vs2014_xp\toolset.props
66IF EXIST %D%\LLVM-vs2014_xp del %D%\LLVM-vs2014_xp\toolset.targets
67IF EXIST %D%\LLVM-vs2014_xp rmdir %D%\LLVM-vs2014_xp
68
69
70GOTO LOOPHEAD
71
72:LOOPEND
73echo Done!
74