@echo off
del /F /Q X64.reg
cls
SET renchongyi=%CD%
SET renchongyi=%renchongyi:\=\\%
> ".\RASregfile.reg" ECHO Windows Registry Editor Version 5.00
>>".\RASregfile.reg" ECHO. 
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Electronic Arts\Medal of Honor]
>>".\RASregfile.reg" ECHO "DisplayName"="Medal of Honor"
>>".\RASregfile.reg" ECHO "Locale"="zh_TW"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Electronic Arts\Medal of Honor\ergc]
>>".\RASregfile.reg" ECHO @="2NH937LETV6KM2YSVJB8"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Medal of Honor]
>>".\RASregfile.reg" ECHO "DisplayName"="Medal of Honor (TM)"
>>".\RASregfile.reg" ECHO "CD Drive"="G:\\"
>>".\RASregfile.reg" ECHO "ProductName"="Medal of Honor (TM)"
>>".\RASregfile.reg" ECHO "Install Dir"="%renchongyi%\\"
>>".\RASregfile.reg" ECHO "Installed From"="G:\\"
>>".\RASregfile.reg" ECHO "Locale"="zh_TW"
>>".\RASregfile.reg" ECHO "Language"="English (US)"
>>".\RASregfile.reg" ECHO "Product GUID"="{415030B8-3E8B-462A-8C03-41D95AA3AB3B}"
>>".\RASregfile.reg" ECHO "Suppression Exe"=""
>>".\RASregfile.reg" ECHO "Registration"="Software\\Electronic Arts\\Electronic Arts\\Medal of Honor\\ergc"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\Medal of Honor\1.0]
>>".\RASregfile.reg" ECHO "DisplayName"="Medal of Honor"
>>".\RASregfile.reg" ECHO "Language"=dword:00000001
>>".\RASregfile.reg" ECHO "LanguageName"="English (US)"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MoHUpdater.exe]
>>".\RASregfile.reg" ECHO @="%renchongyi%\\Binaries\\MoHUpdater.exe"
>>".\RASregfile.reg" ECHO "Path"="%renchongyi%\\"
>>".\RASregfile.reg" ECHO "Game Registry"="Software\\Electronic Arts\\Medal of Honor"
>>".\RASregfile.reg" ECHO "Installed"=dword:00000001
>>".\RASregfile.reg" ECHO "Restart"=dword:00000000
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Electronic Arts\Medal of Honor]
>>".\RASregfile.reg" ECHO "DisplayName"="Medal of Honor"
>>".\RASregfile.reg" ECHO "Locale"="zh_TW"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Electronic Arts\Medal of Honor\ergc]
>>".\RASregfile.reg" ECHO @="2NH937LETV6KM2YSVJB8"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Medal of Honor]
>>".\RASregfile.reg" ECHO "DisplayName"="Medal of Honor (TM)"
>>".\RASregfile.reg" ECHO "CD Drive"="G:\\"
>>".\RASregfile.reg" ECHO "ProductName"="Medal of Honor (TM)"
>>".\RASregfile.reg" ECHO "Install Dir"="%renchongyi%\\"
>>".\RASregfile.reg" ECHO "Installed From"="G:\\"
>>".\RASregfile.reg" ECHO "Locale"="zh_TW"
>>".\RASregfile.reg" ECHO "Language"="English (US)"
>>".\RASregfile.reg" ECHO "Product GUID"="{415030B8-3E8B-462A-8C03-41D95AA3AB3B}"
>>".\RASregfile.reg" ECHO "Suppression Exe"=""
>>".\RASregfile.reg" ECHO "Registration"="Software\\Electronic Arts\\Electronic Arts\\Medal of Honor\\ergc"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Electronic Arts\Medal of Honor\1.0]
>>".\RASregfile.reg" ECHO "DisplayName"="Medal of Honor"
>>".\RASregfile.reg" ECHO "Language"=dword:00000001
>>".\RASregfile.reg" ECHO "LanguageName"="English (US)"
>>".\RASregfile.reg" ECHO.
>>".\RASregfile.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\MoHUpdater.exe]
>>".\RASregfile.reg" ECHO @="%renchongyi%\\Binaries\\MoHUpdater.exe"
>>".\RASregfile.reg" ECHO "Path"="%renchongyi%\\"
>>".\RASregfile.reg" ECHO "Game Registry"="Software\\Electronic Arts\\Medal of Honor"
>>".\RASregfile.reg" ECHO "Installed"=dword:00000001
>>".\RASregfile.reg" ECHO "Restart"=dword:00000000
cls
ver|findstr /i "XP"&&goto XXPP
echo.
echo 现在弹出了注册表导入窗口，请按"是"或"确定"，从而完成安装
echo.
RASregfile.reg
cls
goto VVWW77
:XXPP
echo 耐心等待...
regedit /s ".\RASregfile.reg"
"%windir%\regedit.exe" /s ".\RASregfile.reg"
"%windir%\SysWoW64\regedit.exe" /s ".\RASregfile.reg"
cls
goto VVWW77
:VVWW77
ren RASregfile.reg X64.reg
cls
START IEXPLORE http://www.jcku.com/?moh
cls
echo 注册表恢复成功，按任意键退出
echo. 
echo.
pause >nul
cls