彻底删除msde2008(请先在控制面板中卸载).bat
@echo off
set /P dv=请确认强制删除MSDE2008(请先在控制面板中卸载),Y=删除,N=退出:
if not defined dv set dv=N
if /i "%dv%"=="n" goto :next
rd /s /q "C:\Program Files\Microsoft SQL Server"
rd /s /q "C:\Program Files (x86)\Microsoft SQL Server"
reg delete "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "PendingFileRenameOperations" /f
reg delete "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SQL Redist" /f
:next
echo 已删除MSDE目录!& pause
原文:https://www.cnblogs.com/liuzhaoyzz/p/8824095.html