Advertisement
Moorer

VMware Unlocker 1.3.0 Modified

Jul 28th, 2014
914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal ENABLEEXTENSIONS
  3. echo VMware Unlocker 1.3.0
  4. echo ========================
  5. echo (c) Dave Parsons 2011-14
  6.  
  7. if %PROCESSOR_ARCHITECTURE% == AMD64 (
  8.     set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation"
  9. ) else (
  10.     set KeyName="HKLM\SOFTWARE\VMware, Inc.\VMware Workstation"
  11. )
  12. :: delims is a TAB followed by a space
  13. for /F "tokens=2* delims=    " %%A in ('REG QUERY %KeyName% /v InstallPath') do set InstallPath=%%B
  14. echo VMware is installed at: %InstallPath%
  15.  
  16. echo Stopping VMware services...
  17. net stop VMwareHostd > NUL 2>&1
  18. net stop VMAuthdService > NUL 2>&1
  19. net stop VMUSBArbService > NUL 2>&1
  20.  
  21. echo Stopping Additional VMware services...
  22. net stop VMnetDHCP > NUL 2>&1
  23. net stop VMware NAT Service > NUL 2>&1
  24.  
  25. echo Terminating vmware-tray process and sub-owned processes...
  26. taskkill /F /T /IM vmware-tray.exe > NUL 2>&1
  27.  
  28. echo Patching...
  29. pushd %~dp0
  30. Unlocker.exe
  31. xcopy /F /Y ..\tools\darwin.* "%InstallPath%"
  32. popd
  33.  
  34. echo Starting VMware services...
  35. net start VMAuthdService > NUL 2>&1
  36. net start VMwareHostd > NUL 2>&1
  37.  
  38. echo Starting Additional VMware services...
  39. net start VMnetDHCP > NUL 2>&1
  40. net start VMware NAT Service > NUL 2>&1
  41.  
  42. echo Finished!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement