1 Star 0 Fork 1

kunge/unlocker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
efi-windows.cmd 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
@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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/kungecode/unlocker.git
git@gitee.com:kungecode/unlocker.git
kungecode
unlocker
unlocker
main

搜索帮助