@ECHO OFF&(PUSHD "%~DP0")&(REG QUERY "HKU\S-1-5-19">NUL 2>&1)||(
powershell -Command "Start-Process '%~sdpnx0' -Verb RunAs"&&EXIT)

start "" /wait "%~dp0KillGom.exe" GOM64.EXE
start "" /wait "%~dp0KillGom.exe" popup.EXE
taskkill /f /im GOMProtect.exe >NUL 2>NUL
taskkill /f /im GrLauncher.exe >NUL 2>NUL
taskkill /f /im GOM64 >NUL 2>NUL

ECHO.&ECHO 正在卸载，稍等片刻
regsvr32 /s /u VSUtil64.dll
regsvr32 /s /u GomLauncher.dll
for %%a in (*.ax) do regsvr32 /s /u %%a
start "" /wait "%~dp0GOM64.EXE" -UnregServer
start "" /wait "%~dp0GOM64.EXE" /clearsession
start "" /wait "%~dp0GOM64.EXE" /uninstall
start "" /wait "%~dp0GOM64.EXE" /unregassoc

rd/s/q "%AppData%\GRETECH"2>NUL
rd/s/q "%ProgramData%\GRETECH"2>NUL

reg delete "HKCU\SOFTWARE\GRETECH" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\GRETECH" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\GRETECH" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\Software\Clients\Media\GOMPlayerPlus" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\RegisteredApplications" /f /v "GOMPlayerPlus" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\GOM64.EXE" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\avis-plus64" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{11AB7D32-A2E6-47CC-B03A-58972E78D94A}" /f >NUL 2>NUL 
reg delete "HKLM\SOFTWARE\Classes\CLSID\{3759744B-FC7E-4CFF-9B72-8243A0DC9B36}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{72CC5574-5A05-45A8-82D6-60207813463D}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{A54F7D56-2F2D-4743-9E6B-AC847A3ED05F}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{BFF03BA9-F3B8-438C-9482-357E05CBA4E6}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\CLSID\{FAE82D06-6DFC-4802-A764-65582EF928C4}" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\gomcmd-plus64" /f >NUL 2>NUL 
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.264" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.3g2" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.3gp" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.aac" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ac3" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.aif" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.aiff" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.alac" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.amr" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.amv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ape" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.asf" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ass" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.asx" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.avi" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.caf" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.dff" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.divx" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.dmb" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.dmskm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.dsf" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.dss" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.duk" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.dvr-ms" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.evo" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.flv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.gbm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.gom" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.gsm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.gxf" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.h264" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.hevc" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ifo" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.k3g" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.lmp4" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.m1v" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.m2t" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.m2ts" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.m2v" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.m4a" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.m4v" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.MediaFile" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mka" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mkv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mov" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mp2" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mp4" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mpc" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mpe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mpeg" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mpg" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mpl" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mpq" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mqv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mtm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mts" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.mxf" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ncg" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.nsv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ogm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ogv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.oma" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.psb" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.qt" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.rm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.rmvb" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.rso" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.rt" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.sbv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.shn" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.skm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.smi" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.smil" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.spx" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.srt" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ssa" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.sub" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.sup" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.svi" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.swf" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.tak" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.tp" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.ts" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.tta" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.vdr" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.vob" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.vp6" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.vp7" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.vtt" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.webm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.wm" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.wmp" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.wmv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.wmx" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.wv" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\GOMPlayerPlus.wvx" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\jamak-plus64" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Classes\ogms-plus64" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Clients\Media\GOMPlayerPlus" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Clients\Media\GOMPlayerPlus" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION" /f /v "GOM64.EXE" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\GOMPlayDVDOnArrival" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\GOMPlayMediaOnArrival" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" /f /v "GOMPlayDVDOnArrival" >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayVideoFilesOnArrival" /f /v "GOMPlayMediaOnArrival" >NUL 2>NUL
del/q "%Public%\Desktop\GOMPlayer*.lnk" >NUL 2>NUL
del/q "%UserProfile%\Desktop\GOMPlayer*.lnk" >NUL 2>NUL 

CLS
ECHO.&ECHO 清理完成，确认删除？
ECHO.&ECHO 1.删除软件备份保存选项配置
ECHO.&ECHO 2.删除软件以及移除选项配置
ECHO.&ECHO Modded by www.423down.com
CHOICE /C 12 /N >NUL 2>NUL

IF "%ERRORLEVEL%"=="2" (
 reg delete "HKCU\Software\GRETECH" /f >NUL 2>NUL
 PUSHD .. & RD /S/Q "%~DP0" >NUL 2>NUL)
  
IF "%ERRORLEVEL%"=="1" (
  regedit /e "!)选项配置.reg" HKEY_CURRENT_USER\Software\GRETECH >NUL 2>NUL
  FOR /F "delims=*" %%a IN ('dir /a/b *.*^|findstr /v /i "选项配置"') DO ( RD /S/Q "%%a" 2>NUL & DEL /F/Q "%%a" >NUL 2>NUL )
)