forked from APX103/unlocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
win-update-tools.cmd
41 lines (35 loc) · 1.05 KB
/
win-update-tools.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
setlocal ENABLEEXTENSIONS
echo Get macOS VMware Tools 3.0.7
echo ===============================
echo (c) Dave Parsons 2011-21
net session >NUL 2>&1
if %errorlevel% neq 0 (
echo Administrator privileges required!
pause
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%
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 Workstation/Player version 12 or greater required!
pause
exit /b
)
pushd %~dp0
.\python-win-embed-amd64\python.exe gettools.py
xcopy /F /Y /X .\tools\vmtools\darwin*.* "%InstallPath%"
popd
pause