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

taskkill /f /im 2345P* >NUL 2>NUL
taskkill /f /im 2345OCR* >NUL 2>NUL
if exist 2345PicLoader.exe start "" /wait "%~dp02345PicLoader.exe" -preUninstall -invoke-platform-x64
if exist 2345PicLoader.exe start "" /wait "%~dp02345PicLoader.exe" -uninstall -invoke-platform-x64

if exist 2345ImageThumb.dll regsvr32 /s /u 2345ImageThumb.dll
if exist 2345ImageThumb64.dll regsvr32 /s /u 2345ImageThumb64.dll

rd /s/q "%TEMP%\2345Pic"2>NUL
rd /s/q "%AppData%\2345OCR"2>NUL
rd /s/q "%AppData%\2345Pic"2>NUL
rd /s/q "%AppData%\2345Uninst"2>NUL
rd /s/q "%AppData%\Helper_2345"2>NUL
rd /s/q "%AppData%\2345DomainMon"2>NUL
rd /s/q "%AppData%\2345PdfConverter"2>NUL

del/q "%Public%\Desktop\看图王.lnk" >NUL 2>NUL
del/q "%UserProfile%\Desktop\看图王.lnk" >NUL 2>NUL
rd/s/q "%AppData%\Microsoft\Windows\Start Menu\Programs\看图王"2>NUL
rd/s/q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\看图王"2>NUL
rd/s/q "%AppData%\Microsoft\Windows\Start Menu\Programs\2345王牌软件"2>NUL
rd/s/q "%ProgramData%\Microsoft\Windows\Start Menu\Programs\2345王牌软件"2>NUL

reg delete "HKCU\Software\2345.com" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\2345Pic" /f  >NUL 2>NUL
reg delete "HKLM\SOFTWARE\2345Pic" /f /reg:32 >NUL 2>NUL
reg delete "HKLM\SOFTWARE\RegisteredApplications" /v "2345Pic" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\2345PicViewer.exe" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\2345Pic" /f >NUL 2>NUL
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\2345Pic" /f /reg:32 >NUL 2>NUL

ECHO.&ECHO 清除完成，删除软件? [敲1]
ECHO.&ECHO 八年老站，每日更新 WWW.YPOJIE.COM

CHOICE /C 1 /N >NUL 2>NUL
IF "%ERRORLEVEL%"=="1" (
  DEL /F/Q "2345ImageThumb*.dll" >NUL 2>NUL
  IF EXIST 2345ImageThumb.dll ren 2345ImageThumb.dll "2345ImageThumb.dll.%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.tmp" >NUL 2>NUL
  IF EXIST 2345ImageThumb64.dll ren 2345ImageThumb64.dll "2345ImageThumb64.dll.%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.tmp" >NUL 2>NUL
  PUSHD .. & RD /S/Q "%~DP0" >NUL 2>NUL )