@ECHO OFF & PUSHD %~DP0 & TITLE 卸载
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit)
Rd "%WinDir%\System32\test_permissions" 2>NUL
SetLocal EnableDelayedExpansion

taskkill /f /im DTLite* >NUL 2>NUL
taskkill /f /im DiscSo* >NUL 2>NUL
taskkill /f /im DTLauncher* >NUL 2>NUL

DiscSoftBusServiceLite.exe -service
DiscSoftBusServiceLite.exe /unmountall
DiscSoftBusServiceLite.exe /uninstalldriver
DiscSoftBusServiceLite.exe /unregserver

rd/s/q "%ProgramData%\NetSarang" 2>NUL
rd/s/q "%AllUsersProfile%\NetSarang"2>NUL
rd/s/q "%APPDATA%\DAEMON Tools Lite"2>NUL
reg delete "HKCU\Software\Disc Soft" /F>NUL 2>NUL
reg delete "HKCU\Software\DAEMON.Tools.Lite" /F>NUL 2>NUL
reg delete "HKLM\Software\Disc Soft\DAEMON Tools Lite" /F>NUL 2>NUL
if exist "%Public%" rd/s/q "%ProgramData%\DAEMON Tools Lite" 2>NUL
if not exist "%Public%" rd/s/q "%AllUsersProfile%\Application Data\DAEMON Tools Lite" 2>NUL
ECHO.&ECHO 卸载完成！按任意键退出！&PAUSE >NUL 2>NUL & CLS