-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathwin-test-install.cmd
More file actions
54 lines (44 loc) · 1.03 KB
/
win-test-install.cmd
File metadata and controls
54 lines (44 loc) · 1.03 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
setlocal ENABLEEXTENSIONS
echo.
rem --- Get app version ---
call win-helper-functions.cmd get_app_version
echo Unlocker %APPVERSION% for VMware Workstation
echo =====================================
echo (c) Dave Parsons 2011-18
echo.
echo Set encoding parameters...
chcp 850
rem --- Require admin ---
call win-helper-functions.cmd check_admin
if "%IS_ADMIN%"=="0" (
echo Administrator privileges required!
exit /b 1
)
echo.
rem --- Detect VMware installation ---
call win-helper-functions.cmd detect_vmware
if "%VMWARE_INSTALLED%" == "0" (
exit /b
)
pushd %~dp0
echo.
rem --- Stop VMware services ---
call win-helper-functions.cmd stop_vmware_services
echo.
rem --- Backup VMware Files ---
call win-helper-functions.cmd backup_vmware_files
echo.
echo Patching...
python unlocker.py
echo.
echo Getting VMware Tools...
python gettools.py
rem ---Copy tools ---
call win-helper-functions.cmd copy_vmware_tools
echo.
rem --- Start VMware services ---
call win-helper-functions.cmd start_vmware_services
popd
echo.
echo Finished!