cmake: Add msbuild integration to the install
[oota-llvm.git] / tools / msbuild / uninstall.bat
1 @echo off\r
2 \r
3 echo Uninstalling MSVC integration...\r
4 \r
5 REM CD to the directory of this batch file.\r
6 cd /d %~dp0\r
7 \r
8 REM Search for the MSBuild toolsets directory.\r
9 SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets"\r
10 IF EXIST %D% GOTO FOUND_MSBUILD\r
11 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets"\r
12 IF EXIST %D% GOTO FOUND_MSBUILD\r
13 \r
14 echo Failed to find MSBuild toolsets directory.\r
15 goto FAILED\r
16 \r
17 :FOUND_MSBUILD\r
18 \r
19 del %D%\llvm\Microsoft.Cpp.Win32.llvm.props\r
20 IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
21 del %D%\llvm\Microsoft.Cpp.Win32.llvm.targets\r
22 IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
23 rmdir %D%\llvm\r
24 IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
25 \r
26 echo Done!\r
27 goto END\r
28 \r
29 :FAILED\r
30 echo MSVC integration uninstall failed.\r
31 pause\r
32 goto END\r
33 \r
34 :END\r