如何在 Wine 中安装 HTML(Gecko)支持?

如何在 Wine 中安装 HTML(Gecko)支持?

我正在尝试运行一个游戏安装程序,它要求我向下滚动许可协议才能继续,它使用一些 IE 技术以 HTML 形式呈现,所以我相信我需要 wine-gecko.. 但我该如何安装它呢?

wine msiexec /i wine-gecko-2.47.1-x86_64.msi只是给我:

0009:err:mscoree:LoadLibraryShim error reading registry key for installroot
0009:err:mscoree:LoadLibraryShim error reading registry key for installroot
0009:err:mscoree:LoadLibraryShim error reading registry key for installroot
0009:err:mscoree:LoadLibraryShim error reading registry key for installroot

无法滚动意味着无法同意许可协议。


看:https://wiki.winehq.org/Gecko

我正在运行 Ubuntu 20.04。

编辑#1

当 wine 初始化时,我得到了这个:

wine: created the configuration directory '/home/myuser/.wine'
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002

Could not find Wine Gecko. HTML rendering will be disabled.
Could not find Wine Gecko. HTML rendering will be disabled.
wine: configuration in L"/home/myuser/.wine" has been updated.
Could not find Wine Gecko. HTML rendering will be disabled.
0009:err:mshtml:create_document_object Failed to init Gecko, returning CLASS_E_CLASSNOTAVAILABLE

所以它看起来好像正在某处试图寻找壁虎。

答案1

下载适用于你的 Wine 版本的最新 Gecko 文件:https://wiki.winehq.org/Gecko. 因此如果您有 Wine 5.* 您应该下载:

为了实现此功能,您确实需要 x86 和 x86_64,但无需下载版本.tar.bz2.msi这就是您想要的。

然后将它们放入~/.cache/wine/目录中并首次初始化/运行 Wine,例如通过运行winebootwine someapp.exe,但请确保您还没有~/.wine/目录,如果您有目录,Wine 将不会安装 Gecko。

~/.wine/但是,如果该目录中有重要文件,当然不要删除它!

相关内容