1 Star 0 Fork 0

XCoder955/unlocker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
win-install.cmd 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
@echo off
setlocal ENABLEEXTENSIONS
echo.
echo Unlocker 3.0.3 for VMware Workstation
echo =====================================
echo (c) Dave Parsons 2011-21
echo.
echo Set encoding parameters...
chcp 850
net session >NUL 2>&1
if %errorlevel% neq 0 (
echo Administrator privileges required!
exit /b
)
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%
pushd %~dp0
echo.
echo Stopping VMware services...
net stop vmware-view-usbd > NUL 2>&1
net stop VMwareHostd > NUL 2>&1
net stop VMAuthdService > NUL 2>&1
net stop VMUSBArbService > NUL 2>&1
taskkill /F /IM vmware-tray.exe > NUL 2>&1
echo.
echo Backing up files...
rd /s /q .\backup > NUL 2>&1
mkdir .\backup
mkdir .\backup\x64
xcopy /F /Y "%InstallPath%x64\vmware-vmx.exe" .\backup\x64
xcopy /F /Y "%InstallPath%x64\vmware-vmx-debug.exe" .\backup\x64
xcopy /F /Y "%InstallPath%x64\vmware-vmx-stats.exe" .\backup\x64
xcopy /F /Y "%InstallPath%vmwarebase.dll" .\backup\
echo.
echo Patching...
.\python-win-embed-amd64\python.exe unlocker.py
echo.
echo Getting VMware Tools...
.\python-win-embed-amd64\python.exe gettools.py
echo.
echo Starting VMware services...
net start VMUSBArbService > NUL 2>&1
net start VMAuthdService > NUL 2>&1
net start VMwareHostd > NUL 2>&1
net start vmware-view-usbd > NUL 2>&1
popd
echo.
echo Finished!
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/XCoder955/unlocker.git
git@gitee.com:XCoder955/unlocker.git
XCoder955
unlocker
unlocker
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385