nick@nick-sager:~/diabloforum/games$ # 安装 winetricks
sudo apt install -y winetricks winbind
# 初始化 Wine 环境(如果是第一次用,先运行这个)
winecfg # 弹出窗口后选 Windows 7 版本,点 OK 关闭
# 安装缺失的通用控件 + 核心运行库
winetricks --force comctl32=6.10 vcrun2005 vcrun2008 vcrun2010 gdiplus dxvk
[sudo] password for nick:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
winbind is already the newest version (2:4.15.13+dfsg-0ubuntu1.10).
Suggested packages:
tor
The following NEW packages will be installed:
fuseiso winetricks
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 187 kB of archives.
After this operation, 1,187 kB of additional disk space will be used.
Get:1
http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 fuseiso amd64 20070708-3.2build1 [19.5 kB]
Get:2
http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 winetricks all 0.0+20210206-2 [167 kB]
Fetched 187 kB in 6s (32.0 kB/s)
Selecting previously unselected package fuseiso.
(Reading database ... 754026 files and directories currently installed.)
Preparing to unpack .../fuseiso_20070708-3.2build1_amd64.deb ...
Unpacking fuseiso (20070708-3.2build1) ...
Selecting previously unselected package winetricks.
Preparing to unpack .../winetricks_0.0+20210206-2_all.deb ...
Unpacking winetricks (0.0+20210206-2) ...
Setting up fuseiso (20070708-3.2build1) ...
Setting up winetricks (0.0+20210206-2) ...
Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit packagekit.service is masked.
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0088:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0080:fixme:seh:WerSetFlags (2) stub
0080:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0094:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
0094:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00006FFFFAE525B7, 28) stub
0094:fixme:ver:GetCurrentPackageId (00007FFFFF01EB50 0000000000000000): stub
00b8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00b8:fixme:seh:WerSetFlags (2) stub
00b8:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
00d8:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
00d8:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 79793241, 28) stub
00d8:fixme:ver:GetCurrentPackageId (013FECCC 00000000): stub
0154:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
015c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
015c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
015c:err:commdlg:DllMain failed to create activation context, last error 14001
Executing cd /usr/local/bin
------------------------------------------------------
warning: You are running winetricks-20250102-next, latest upstream is winetricks-20260125!
------------------------------------------------------
------------------------------------------------------
warning: You should update using your distribution's package manager, --self-update, or manually.
------------------------------------------------------
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
------------------------------------------------------
warning: You appear to be using Wine's new wow64 mode. Note that this is EXPERIMENTAL and not yet fully supported. If reporting an issue, be sure to mention this.
------------------------------------------------------
Using winetricks 20250102-next - sha256sum: 7f29a4ec7c559af18e88f1c0d012c2b0873c5228158511c3b5f4c9b127b9a733 with wine-11.0 and WINEARCH=win64
Unknown arg comctl32=6.10
Usage: /usr/local/bin/winetricks [options] [command|verb|path-to-verb] ...
Executes given verbs. Each verb installs an application or changes a setting.
Options:
--country=CC Set country code to CC and don't detect your IP address
-f, --force Don't check whether packages were already installed
--gui Show gui diagnostics even when driven by commandline
--gui=OPT Set OPT to kdialog or zenity to override GUI engine
--isolate Install each app or game in its own bottle (WINEPREFIX)
--self-update Update this application to the last version
--update-rollback Rollback the last self update
--no-clean Don't delete temp directories (useful during debugging)
--optin Opt in to reporting which verbs you use to the Winetricks maintainers
--optout Opt out of reporting which verbs you use to the Winetricks maintainers
-q, --unattended Don't ask any questions, just install automatically
-t --torify Run downloads under torify, if available
--verify Run (automated) GUI tests for verbs, if available
-v, --verbose Echo all commands as they are executed
-h, --help Display this message and exit
-V, --version Display version and exit
Commands:
list list categories
list-all list all categories and their verbs
apps list list verbs in category 'applications'
benchmarks list list verbs in category 'benchmarks'
dlls list list verbs in category 'dlls'
fonts list list verbs in category 'fonts'
settings list list verbs in category 'settings'
list-cached list cached-and-ready-to-install verbs
list-download list verbs which download automatically
list-manual-download list verbs which download with some help from the user
list-installed list already-installed verbs
arch=32|64 create wineprefix with 32 or 64 bit, this option must be
given before prefix=foobar and will not work in case of
the default wineprefix.
prefix=foobar select WINEPREFIX=/home/nick/.local/share/wineprefixes/foobar
annihilate Delete ALL DATA AND APPLICATIONS INSIDE THIS WINEPREFIX
nick@nick-sager:~/diabloforum/games$
nick@nick-sager:~/diabloforum/games$ # 临时生效(安装游戏时用)
export GDK_BACKEND=x11
export SDL_VIDEODRIVER=x11
export WINEPREFIX=~/.wine # 确保用默认的 Wine 环境
# 永久生效(可选,以后运行 Wine 都用 X11)
echo "export GDK_BACKEND=x11" >> ~/.bashrc
echo "export SDL_VIDEODRIVER=x11" >> ~/.bashrc
source ~/.bashrc
nick@nick-sager:~/diabloforum/games$ wine ./HoMM3_HD_Latest_setup.exe
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0088:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0080:fixme:seh:WerSetFlags (2) stub
0080:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
0094:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
0094:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 00006FFFFAE525B7, 28) stub
0094:fixme:ver:GetCurrentPackageId (00007FFFFF01EB50 0000000000000000): stub
00b8:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
00b8:fixme:seh:WerSetFlags (2) stub
00b8:fixme:heap:RtlSetHeapInformation HEAP_INFORMATION_CLASS 1 not implemented!
00d8:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
00d8:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 79793241, 28) stub
00d8:fixme:ver:GetCurrentPackageId (013FECCC 00000000): stub
0024:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0154:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0154:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0154:err:commdlg:DllMain failed to create activation context, last error 14001
0154:fixme:win:DisableProcessWindowsGhosting : stub
0154:fixme:graphics:ShutdownBlockReasonDestroy (00010080): stub
0154:fixme:graphics:ShutdownBlockReasonCreate (00010080, L"Installing"): stub
0154:fixme:msg:ChangeWindowMessageFilterEx 00010094 c041 1 00000000
0154:fixme:rstrtmgr:RmStartSession 0049F3FC, 0, 0049F400 stub!
0154:fixme:graphics:ShutdownBlockReasonDestroy (00010080): stub
0154:fixme:graphics:ShutdownBlockReasonCreate (00010080, L"Installing HoMM3 HD 5.0 RC46."): stub
0154:fixme:msg:ChangeWindowMessageFilterEx 00020098 c041 1 00000000
0154:fixme:msg:ChangeWindowMessageFilterEx 0001009E c041 1 00000000
0154:fixme:msg:ChangeWindowMessageFilterEx 0002009E c041 1 00000000
0154:fixme:shell:SHAutoComplete stub
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
0094:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
00d8:fixme:service:QueryServiceConfig2W Level 6 not implemented
0154:fixme:rstrtmgr:RmRegisterResources -559038737, 20, 02146E90, 0, 00000000, 0, 00000000 stub!
0154:fixme:rstrtmgr:RmGetList -559038737, 005DF368, 005DF36C, 021EC004, 005DF364 stub!
0154:fixme:explorerframe:taskbar_list_SetProgressValue iface 0151EF28, hwnd 00010080, ullCompleted 0, ullTotal 4a7 stub!
0154:fixme:sfc:SfcIsFileProtected (00000000, L"C:\\GOG Games\\HoMM 3 Complete\\_HD3_Data\\unins000.exe") stub
0154:fixme:explorerframe:taskbar_list_SetProgressState iface 0151EF28, hwnd 00010080, flags 0 stub!
0178:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0154:fixme:rstrtmgr:RmEndSession 3735928559 stub!
0154:fixme:graphics:ShutdownBlockReasonDestroy (00010080): stub
nick@nick-sager:~/diabloforum/games$ 0178:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0178:err:commdlg:DllMain failed to create activation context, last error 14001
0178:fixme:ver:GetCurrentPackageId (0061F69C 00000000): stub
0178:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0178:fixme:ver:GetCurrentPackageId (0061FEB4 00000000): stub
nick@nick-sager:~/diabloforum/games$
我不知道这个英文是哪一个?是"decorate windows" 还是"control windows" 还是两个都要取消?