使用新版unlocker如果出现File not found和UnicodeEncodeError错误,可以看一下

版权声明:让我们一起享受这神奇的0和1吧 https://blog.csdn.net/eebaicai/article/details/83998225
VMware is installed at: I:\???\
VMware product version: 14.1.3.9474260

Stopping VMware services...

Backing up files...
File not found - vmware-vmx.exe
0 File(s) copied
File not found - vmware-vmx-debug.exe
0 File(s) copied
File not found - vmware-vmx-stats.exe
0 File(s) copied
File not found - vmwarebase.dll
0 File(s) copied

Patching...
Traceback (most recent call last):
  File "unlocker.py", line 399, in <module>
    if __name__ == '__main__':
  File "unlocker.py", line 389, in main
    # Patch the vmx executables skipping stats version for Player
  File "unlocker.py", line 233, in patchsmc

  File "encodings\cp850.py", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 9-11: character maps to <undefined>
[12224] Failed to execute script unlocker

解决方法:

这里用的在VM14版
最快的方法:可以用209版的unlocker
https://download.csdn.net/download/eebaicai/10780557

如果还想知道为啥这个版本不行,请看下面:

如果有这个乱码(路径是中文):
VMware is installed at: I:\???\
VMware product version: 14.1.3.9474260

是因为开头这里设置不一样
echo Set encoding parameters...
chcp 850
去掉就行

还有这个版本不执行14patch.exe这个了,没有这个文件了,只是提一下,不用修改,哈哈

还有发现检查的注册表路径不同了
可以修改回来:
set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation"
然后删除
for /F "tokens=2* delims=	 " %%A in ('REG QUERY %KeyName% /v ProductVersion') do set ProductVersion=%%B
echo VMware product version: %ProductVersion%

猜你喜欢

转载自blog.csdn.net/eebaicai/article/details/83998225
今日推荐