forked from theJaxon/unlocker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@echo off | ||
setlocal ENABLEEXTENSIONS | ||
echo VMware Unlocker 2.0.4 | ||
echo ======================== | ||
echo (c) Dave Parsons 2011-15 | ||
|
||
net session >NUL 2>&1 | ||
if %errorlevel% neq 0 ( | ||
echo Administrator privileges required! | ||
exit | ||
) | ||
|
||
pushd %~dp0 | ||
|
||
set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation" | ||
:: delims is a TAB followed by a space | ||
for /F "tokens=2* delims= " %%A in ('REG QUERY %KeyName% /v InstallPath') do set InstallPath=%%B | ||
echo VMware is installed at: %InstallPath% | ||
|
||
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 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 Patching... | ||
python unlocker.py | ||
|
||
xcopy /F /Y .\tools\darwin.* "%InstallPath%" | ||
|
||
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 Finished! |