@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
❝反覆幾回 卸載安裝sqlserver不行 我一想這樣挺麻煩的 還不如用虛擬機呢(windows系列隨意測死) 失敗了 直接全刪重來 不用在乎什麼註冊表啥html
❞
控制面板\系統和安全\Windows 防火牆
」