@ECHO OFF & CD /D %~DP0 & TITLE 易破解网站绿化
@ECHO OFF&(CD /D "%~DP0")&(FLTMC>NUL)||(mshta vbscript:CreateObject^("Shell.Application"^).ShellExecute^("%~snx0"," %*","","runas",1^)^(window.close^)&&exit /b)
taskkill /f /im FoxitReader* >NUL 2>NUL
rd /s /q "%AppData%\Foxit Software"2>NUL
::清理福昕升级服务项
reg delete "HKCU\Software\Foxit Software\Foxit Reader 10.0" /F>NUL 2>NUL
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\FoxitReaderUpdateService" /F>NUL 2>NUL
::默认启动为简体中文
reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\Preferences\Languages" /f /v "nChooseLan" /d "1" >NUL 2>NUL
reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\Preferences\Languages" /f /v "LangID" /d "49007d" >NUL 2>NUL
::取消首次提示注册弹窗（已硬改程序去除）
::reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\Preferences\Registration" /f /v "bShowRegisterDlg" /d "0" >NUL 2>NUL
::选项常规-取消广告条项（已硬改程序去除）
::reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\Preferences\General" /f /v "bShowAdvertisement" /d "0" >NUL 2>NUL
::选项常规-禁用PDF互联（已移除功能组件）
reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\ConnectedPDF" /f /v "DisablecPDF" /d "1" >NUL 2>NUL
::选项常规-取消收集数据改善体验
reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\Preferences\General" /f /v "bCollectData" /d "0" >NUL 2>NUL
::关闭安全阅读模式
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader" /f /v "bSafeMode"  /d "0" >NUL 2>NUL
reg add "HKCU\Software\Foxit Software\Foxit Reader 10.0\Preferences\Trust Manager" /f /v "bSafeMode" /d "0" >NUL 2>NUL
::软件注册表键值项
reg add "HKCR\.pdf\OpenWithProgids" /f /v "URL Protocol"  /d "" >NUL 2>NUL
reg add "HKCR\.pdf\OpenWithProgids" /f /ve  /d "URL:FoxitReader Protoco" >NUL 2>NUL
reg add "HKCR\.pdf\OpenWithProgids" /f /v "FoxitReader.Document" /t REG_BINARY /d "" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\foxitreader.exe" /f /v "Path"  /d "%~dp0\" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\foxitreader.exe" /f /ve  /d "%~dp0FoxitReader.exe" >NUL 2>NUL
reg add "HKCU\Software\Foxit Software\Foxit Reader 9.0\plugins\Installed" /f /v "InitDefPlugins" /t REG_DWORD /d "0" >NUL 2>NUL
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithProgids" /f /v "FoxitReader.Document" /t REG_BINARY /d "" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader" /f /v "Edition"  /d "0" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader" /f /v "InstallPath"  /d "%~dp0\" >NUL 2>NUL
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache" /f /v "%~dp0FoxitReader.exe"  /d "Foxit Reader 10.0" >NUL 2>NUL
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICache" /f /v "%~dp0FoxitReader.exe.FriendlyAppName"  /d "Foxit Reader 10.0" >NUL 2>NUL
reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" /f /v "%~dp0FoxitReader.exe"  /d "Foxit Reader 10.0" >NUL 2>NUL
reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache" /f /v "%~dp0FoxitReader.exe.FriendlyAppName"  /d "Foxit Reader 10.0" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\FileAssociations" /f /v ".pdf"  /d "FoxitReader.Document" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\FileAssociations" /f /v ".fdf"  /d "FoxitReader.FDFDoc" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\FileAssociations" /f /v ".xfdf"  /d "FoxitReader.XFDFDoc" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\FileAssociations" /f /v ".xdp"  /d "FoxitReader.XDPDoc" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\FileAssociations" /f /v ".ppdf"  /d "FoxitReader.PPDF" >NUL 2>NUL
reg add "HKLM\SOFTWARE\RegisteredApplications" /f /v "Foxit Reader"  /d "SOFTWARE\Foxit Software\Foxit Reader\Capabilities" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities" /f /v "ApplicationName"  /d "Foxit Reader" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities" /f /v "ApplicationDescription"  /d "CustomMessage:ApplicationDescription" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\MIMEAssociations" /f /v "application/pdf"  /d "{9A9F603B-51A8-4630-AE99-4BBF01675575}" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\MIMEAssociations" /f /v "application/vnd.fdf"  /d "{9A9F603B-51A8-4630-AE99-4BBF01675575}" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\MIMEAssociations" /f /v "application/vnd.xdp"  /d "{9A9F603B-51A8-4630-AE99-4BBF01675575}" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\MIMEAssociations" /f /v "application/vnd.xfdf"  /d "{9A9F603B-51A8-4630-AE99-4BBF01675575}" >NUL 2>NUL
reg add "HKLM\SOFTWARE\Foxit Software\Foxit Reader\Capabilities\UrlAssociations" /f /v "foxitreader"  /d "foxitreader" >NUL 2>NUL
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\福昕阅读器.lnk""):b.TargetPath=""%~dp0FoxitReader.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close")
:Menu
Echo.&Echo  完成，以下自选：
Echo.&Echo  1、设置默认PDF阅读器+缩略图外壳
Echo.&Echo  2、注册在浏览器打开PDF文件的插件
echo. 
set /p choice=输入数字敲回车键：
if not "%choice%"=="" set choice=%choice:~0,1%
if /i "%choice%"=="1" Goto AddShellExtensions
if /i "%choice%"=="2" Goto AddBrowserAx
ECHO 输入无效 &PAUSE>NUL&CLS&GOTO MENU
if %errorlevel%==1 Goto AddShellExtensions
if %errorlevel%==2 Goto AddBrowserAx
:AddShellExtensions
del/f/q "%userprofile%\AppData\Local\IconCache*.db" >NUL 2>NUL
del/f/q "%LocalAppData%\Microsoft\Windows\Explorer\thumbcache*.db" >NUL 2>NUL
Start /Wait FoxitReader.exe /register
regsvr32 /s "%~dp0Shell Extensions\FoxitPrevHndlr.dll"
regsvr32 /s "%~dp0Shell Extensions\FoxitThumbnailHndlr_x86.dll"
if /i %PROCESSOR_IDENTIFIER:~0,3% EQU regsvr32 /s "%~dp0Shell Extensions\FoxitThumbnailHndlr_x64.dll"
Start /Wait "" "%~dp0Shell Extensions\FoxitPreviewhost.exe" /regserver
ECHO.&ECHO 完成，任意键返回! &PAUSE>NUL&CLS&GOTO MENU
:AddBrowserAx
regsvr32 /s "%~dp0plugins\FoxitReaderBrowserAx.dll"
if /i %PROCESSOR_IDENTIFIER:~0,3% EQU regsvr32 /s "%~dp0plugins\FoxitReaderBrowserAx64.dll"
Start /Wait FoxitReader.exe /displayinbrowser
ECHO.&ECHO 完成，任意键返回! &PAUSE>NUL&CLS&GOTO MENU