@@ -54,6 +54,15 @@ echo.%CC%| findstr /I "gcc">Nul && (
54
54
if errorlevel 1 (
55
55
exit /B 1
56
56
)
57
+
58
+ echo > %INSTALL_DIR% \lib\canary.txt
59
+
60
+ dir %INSTALL_DIR% \share\mongo-c-driver
61
+
62
+ %CMAKE_MAKE_PROGRAM% uninstall
63
+ if errorlevel 1 (
64
+ exit /B 1
65
+ )
57
66
) || (
58
67
%CMAKE% -G " %CC% " " -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% " " -DCMAKE_BUILD_TYPE=Debug" %BSON_ONLY_OPTION% .
59
68
MSBuild.exe /m ALL_BUILD.vcxproj
@@ -64,15 +73,15 @@ echo.%CC%| findstr /I "gcc">Nul && (
64
73
if errorlevel 1 (
65
74
exit /B 1
66
75
)
67
- )
68
76
69
- echo > %INSTALL_DIR% \lib\canary.txt
77
+ echo > %INSTALL_DIR% \lib\canary.txt
70
78
71
- dir %INSTALL_DIR% \share\mongo-c-driver
79
+ dir %INSTALL_DIR% \share\mongo-c-driver
72
80
73
- call %INSTALL_DIR% \share\mongo-c-driver\uninstall.cmd
74
- if errorlevel 1 (
75
- exit /B 1
81
+ MSBuild.exe /m generate_uninstall\uninstall.vcxproj
82
+ if errorlevel 1 (
83
+ exit /B 1
84
+ )
76
85
)
77
86
78
87
if exist %INSTALL_DIR% \lib\pkgconfig\libbson-1.0.pc (
@@ -163,6 +172,24 @@ if "%BSON_ONLY%" NEQ "1" (
163
172
echo $INSTALL_DIR\include\libmongoc-1.0 check ok
164
173
)
165
174
)
175
+ if exist %INSTALL_DIR% \share\mongo-c-driver\uninstall-bson.cmd (
176
+ echo uninstall-bson.cmd found!
177
+ exit /B 1
178
+ ) else (
179
+ echo uninstall-bson.cmd check ok
180
+ )
181
+ if exist %INSTALL_DIR% \share\mongo-c-driver\uninstall.cmd (
182
+ echo uninstall.cmd found!
183
+ exit /B 1
184
+ ) else (
185
+ echo uninstall.cmd check ok
186
+ )
187
+ if exist %INSTALL_DIR% \share\mongo-c-driver\uninstall-bson.sh (
188
+ echo uninstall-bson.sh found!
189
+ exit /B 1
190
+ ) else (
191
+ echo uninstall-bson.sh check ok
192
+ )
166
193
if exist %INSTALL_DIR% \share\mongo-c-driver\uninstall.sh (
167
194
echo uninstall.sh found!
168
195
exit /B 1
0 commit comments