解决wine安装dotnet2.0的问题

2010-10-30T12:16:00

使用winetricks安装dotnet2.0时出现错误:

    ------------------------------------------------------
    Instaling .net 2.0 runtime.  Can take several minutes.  See http://wiki.winehq.org/MicrosoftDotNet for tips.
    ------------------------------------------------------
    prerequisite gecko already installed, skipping
    Setting Windows version to win2k
    Executing early_wine regedit c:\winetrickstmp\set-winver.reg
    Executing cp -f /home/xerxes/.cache/winetricks/dotnet20/l_intl.nls /home/xerxes/.wine/dosdevices/c:/windows/system32/
    Executing wine reg delete HKLM\Software\Microsoft\.NETFramework\policy
                                                                          2.0 /f
    DELETE - HKLM\Software\Microsoft\.NETFramework\policy\v2.0 (null) 0 0 1
    Error: The system was unable to find the specified registry key or value
    ------------------------------------------------------
    Note: command 'wine reg delete HKLM\Software\Microsoft\.NETFramework\policy
    2.0 /f' returned status 1.  Aborting.
    ------------------------------------------------------

在网上查了一下,基本上没有中文解答,好在发现了这个帖子,原来好多人也一样的遇到了这个问题,大部分人都是无解状态,好在7#出现了个lusida大侠给出了解释“The error was because winetricks never bother to check existence of two keys it tries to delete.“(出现这个错误是因为winetricks没有检查将要删除的键值是否存在。)

解决方法是添加那两个winetricks需要删除的键值让其删除:


    wine reg add "HKLM\Software\Microsoft\.NETFramework\policy\v2.0"
    wine reg add "HKLM\Software\Microsoft\.NETFramework" /v InstallRoot

PS:还可以尝试下载这个版本的dotnet来安装,winetricks已经于几周前在SVN中修复了这个小错误

当前页面是本站的「Baidu MIP」版。发表评论请点击:完整版 »