代码拉取完成,页面将自动刷新
@echo off
setlocal ENABLEEXTENSIONS
echo.
echo EFI Unlocker 1.0.2 for VMware
echo =============================
echo (c) Dave Parsons 2018-2021
echo.
set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Player"
for /F "tokens=2*" %%A in ('REG QUERY %KeyName% /v InstallPath') do set InstallPath=%%B
echo VMware is installed at: %InstallPath%
for /F "tokens=2*" %%A in ('REG QUERY %KeyName% /v ProductVersion') do set ProductVersion=%%B
echo VMware product version: %ProductVersion%
for /F "tokens=1,2,3,4 delims=." %%a in ("%ProductVersion%") do (
set Major=%%a
set Minor=%%b
set Revision=%%c
set Build=%%d
)
:: echo Major: %Major%, Minor: %Minor%, Revision: %Revision%, Build: %Build%
:: Check version is 12+
if %Major% lss 12 (
echo VMware Workatation/Player version 12 or greater required!
exit /b
)
pushd %~dp0
:: If version is 12 extract the firmware from vmware-vmx
if %Major% eq 12 (
"%InstallPath%x64\vmware-vmx.exe -e EFI32 > EFI32.ROM"
"%InstallPath%x64\vmware-vmx.exe -e EFi64 > EFI64.ROM"
)
else (
xcopy /F /Y "%InstallPath%x64\EFI32.ROM" .
xcopy /F /Y "%InstallPath%x64\EFI64.ROM" .
)
echo.
echo Patching 32-bit ROM...
./uefipatch/UEFIPatch.exe EFI32.ROM ./uefipatch/efi-patches.txt -o EFI32-MACOS.ROM
del /f EFI32.ROM
echo.
echo Patching 64-bit ROM...
./uefipatch/UEFIPatch.exe EFI64.ROM ./uefipatch/efi-patches.txt -o EFI64-MACOS.ROM
del /f EFI64.ROM
popd
echo.
echo Finished
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。