1. 程式人生 > >使用新版unlocker如果出現File not found和UnicodeEncodeError錯誤,可以看一下

使用新版unlocker如果出現File not found和UnicodeEncodeError錯誤,可以看一下

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%