TVAM / winetricks

Automatically exported from code.google.com/p/winetricks
0 stars 0 forks source link

dotnetfx3 #369

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The problem actualy is winetricks ask a manualy download of dotnet3 and the 
manual copy fo the file in ~/.cache/winetricks

the solution is propose automatic download by changing the source of download

#----------------------------------------------------------------

w_metadata dotnet30 dlls \
    title="MS .NET 3.0" \
    publisher="Microsoft" \
    year="2006" \
    media="manual_download" \
    file1="dotnetfx3.exe" \
    installed_file1="c:/windows/Microsoft.NET/Framework/v3.0/Microsoft .NET Framework 3.0/logo.bmp"

load_dotnet30()
{
    if test -f /proc/sys/kernel/yama/ptrace_scope
    then
        case `cat /proc/sys/kernel/yama/ptrace_scope` in
        0) ;;
        *) w_warn "If install fails, set /proc/sys/kernel/yama/ptrace_scope to 0.  See http://bugs.winehq.org/show_bug.cgi?id=30410" ;;
        esac
    fi

    case "$OS" in
    "Windows_NT")
        osver=`cmd /c ver`
        case "$osver" in
        *Version?6*) w_die "Vista and up bundle .net 3.0, so you can't install it like this" ;;
        esac
        ;;
    esac

    # dotnet20sp2 does this:
    # w_call remove_mono
    w_call dotnet20

    # Delete files and registry keys related to .net 3.x
    # Breaks .net 3.5 installation, so don't do this yet
    #rm -rf "$W_WINDIR_UNIX"/Microsoft.NET/Framework/v3.0
    #$WINE reg delete "HKLM\\Software\Microsoft\NET Framework Setup\NDP\v3.0"

    w_warn "Installing .net 3.0 runtime takes 3 minutes on a very fast machine, and the Finished dialog may hide in the taskbar."
    # http://msdn.microsoft.com/en-us/netframework/bb264589.aspx
    w_download http://fs34.filehippo.com/3665/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe f3d2c3c7e4c0c35450cf6dab1f9f2e9e7ff50039 

    # AF's workaround to avoid long pause
    LANGPACKS_BASE_PATH="${W_WINDIR_UNIX}/SYSMSICache/Framework/v3.0"
    test -d "${LANGPACKS_BASE_PATH}" || mkdir -p "${LANGPACKS_BASE_PATH}"
    for lang in ar cs da de el es fi fr he it jp ko nb nl pl pt-BR pt-PT ru \
                sv tr zh-CHS zh-CHT

do
        ln -sf "${W_SYSTEM32_DLLS}/spupdsvc.exe" "${LANGPACKS_BASE_PATH}/dotnetfx3langpack${lang}.exe"
    done

    w_set_winver winxp

    # Delete FontCache 3.0 service, it's in Wine for Mono, breaks native .NET
    # OK if this fails, that just means you have an older wine.
    $WINE sc delete "FontCache3.0.0.0"

    if w_workaround_wine_bug 30845 "Using native fusion..." ,1.5.6
    then
        # Either adding this registry key
        #$WINE reg add 'HKLM\Software\Microsoft\.NETFramework' /v InstallRoot /d 'C:\Windows\Microsoft.NET\Framework\' /f
        # or using native mscoree and fusion
        WINEDLLOVERRIDES=mscoree,fusion=n
        export WINEDLLOVERRIDES
        # will let install start
    fi
    WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b;$WINEDLLOVERRIDES"

    cd "$W_CACHE"/dotnet30
    w_try $WINE $file1 ${W_OPT_UNATTENDED:+ /q /c:"install.exe /q"}
}

Original issue reported on code.google.com by haitem.belgacem@gmail.com on 23 Oct 2013 at 5:41

GoogleCodeExporter commented 8 years ago
i apologize for my mistake

media="download" \

Original comment by haitem.belgacem@gmail.com on 23 Oct 2013 at 5:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry, Filehippo is not considered a reputable source.

If the vendor doesn't provide a download, Winetricks policy prefers large 
download 
sites that provide some editorial content or ratings, like download.com or game
magazine sites.  Download portal sites like softonic do not qualify.

Original comment by daniel.r...@gmail.com on 5 Nov 2013 at 7:54

GoogleCodeExporter commented 8 years ago
Also, the file cannot have been placed there by a winetricks contributor.
We only use organic sources.

Original comment by daniel.r...@gmail.com on 5 Nov 2013 at 7:54

GoogleCodeExporter commented 8 years ago
I propose that source

http://www.oldapps.com/net_framework.php?app=643a12d8558edf58ddbdb1da2428f284

it is good?

Original comment by haitem.belgacem@gmail.com on 5 Nov 2013 at 9:56

GoogleCodeExporter commented 8 years ago
Yes.  In fact, that's where current winetricks gets it:

    w_download_manual http://www.oldversion.com/download-.Net-Framework-3.0.html netframework3.exe f3d2c3c7e4c0c35450cf6dab1f9f2e9e7ff50039

So, already fixed, I think.

Original comment by daniel.r...@gmail.com on 5 Nov 2013 at 10:12

GoogleCodeExporter commented 8 years ago
I don't think so.
the manual download must be copied in .cache/winetricks/dotnetfx3 folder 
manually.

The finality is to make the package entirely automated.

Original comment by haitem.belgacem@gmail.com on 5 Nov 2013 at 10:20

GoogleCodeExporter commented 8 years ago
oh.  oldapps != oldversion.  

Yes, http://en.wikipedia.org/wiki/OldApps does seem like an ok source.
Go ahead and send an 'svn diff' patch.

Original comment by daniel.r...@gmail.com on 5 Nov 2013 at 10:27

GoogleCodeExporter commented 8 years ago
Ok, but, i don't know how send svn diff :p

Original comment by haitem.belgacem@gmail.com on 7 Nov 2013 at 7:53

GoogleCodeExporter commented 8 years ago
I propose this new SVN of winetricks

Original comment by haitem.belgacem@gmail.com on 28 Nov 2013 at 1:04

Attachments: