POL_Install_dotnet20

Informations

Créateur Messages
GNU_Raziel

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 2047889
Wine: System

Retours d'expérience

Description

Install .NET Framework 2.0

This component does not work in 64-bit virtual drives

Code source

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-11-21 21:00)
# Last revision : (2013-04-12 21:00)
# Author : Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'This package does not work on a 64-bit installation')"
fi

# Remove wine-mono if present
POL_Wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}' || true

# Setting OS check Fix
Set_OS "win2k"
cat << EOF > "dotnet20_fix.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"="Microsoft Windows 2000"
"CSDVersion"=""
"CurrentVersion"="5.0"
"CurrentBuildNumber"="2195"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"=dword:00000000
EOF
POL_Wine regedit "dotnet20_fix.reg"

mkdir "$POL_USER_ROOT/ressources/dotnet20"
cd "$POL_USER_ROOT/ressources/dotnet20"

# Downloading dotnet20 pre-install fix
POL_Download_Resource "http://files.playonlinux.com/l_intl.nls" "3f138c7677ede64e8ad41e3277c86e9e" "dotnet20"

# Downloading dotnet20
POL_Download_Resource "http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/dotnetfx.exe" "93a13358898a54643adbca67d1533462" "dotnet20"

# Setting Fix 1
cp -f "l_intl.nls" "$WINEPREFIX/drive_c/windows/system32"
rm -rf "$WINEPREFIX/drive_c/windows/Microsoft.NET/Framework/v2.0.50727"
POL_Wine_InstallFonts

# Fix Fatal install error in wine 1.5.3 to 1.5.6 and wine current stable branch
if VersionLower $(POL_Config_PrefixRead VERSION) 1.5.7 && ! (VersionLower $(POL_Config_PrefixRead VERSION) 1.5.3) || VersionLower $(POL_Config_PrefixRead VERSION) 1.4.10; then
        POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f
fi

# Setting Fix 2
WINEDLLOVERRIDES="mscoree,fusion=n"
export WINEDLLOVERRIDES

# Installing dotnet20
cd "$POL_USER_ROOT/ressources/dotnet20"
POL_Wine_WaitBefore ".NET Framework 2.0"
POL_Wine --ignore-errors dotnetfx.exe /q /c:"install.exe /q"

# Setting Fix 3
rm -f "$WINEPREFIX/drive_c/windows/system32/msvc?80.dll"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k
Set_OS "winxp" "sp3"
cat << EOF > "Default_OS_Version.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"="Microsoft Windows XP"
"CSDVersion"="Service Pack 3"
"CurrentVersion"="5.3"
"CurrentBuildNumber"="2600"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"=dword:00000300
EOF
POL_Wine regedit "Default_OS_Version.reg"

Contributions

Filters:

Contribuer
Membre Messages
jack1142 Samedi 15 Janvier 2022 à 16:01
jack1142 Anonymous

Information

Cette mise à jour a été acceptée par l'équipe

Messages

While trying to install Office 2010, I get a files mismatch when PlayOnLinux tries to install dotnet20:

It seems that the listed link is dead:
http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe

Winetricks uses dotnetfx.exe link from Lenovo which seems to still work (executable is exactly the same so no need to change the checksum):
https://github.com/Winetricks/winetricks/blob/b458acf76709c665edc9894d928e7f79932978f4/src/winetricks#L8798

Differences

@@ -34,7 +34,7 @@
 POL_Download_Resource "http://files.playonlinux.com/l_intl.nls" "3f138c7677ede64e8ad41e3277c86e9e" "dotnet20"
 
 # Downloading dotnet20
-POL_Download_Resource "http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe" "93a13358898a54643adbca67d1533462" "dotnet20"
+POL_Download_Resource "http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/dotnetfx.exe" "93a13358898a54643adbca67d1533462" "dotnet20"
 
 # Setting Fix 1
 cp -f "l_intl.nls" "$WINEPREFIX/drive_c/windows/system32"

Nouveau code source

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-11-21 21:00)
# Last revision : (2013-04-12 21:00)
# Author : Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'This package does not work on a 64-bit installation')"
fi

# Remove wine-mono if present
POL_Wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}' || true

# Setting OS check Fix
Set_OS "win2k"
cat << EOF > "dotnet20_fix.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"="Microsoft Windows 2000"
"CSDVersion"=""
"CurrentVersion"="5.0"
"CurrentBuildNumber"="2195"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"=dword:00000000
EOF
POL_Wine regedit "dotnet20_fix.reg"

mkdir "$POL_USER_ROOT/ressources/dotnet20"
cd "$POL_USER_ROOT/ressources/dotnet20"

# Downloading dotnet20 pre-install fix
POL_Download_Resource "http://files.playonlinux.com/l_intl.nls" "3f138c7677ede64e8ad41e3277c86e9e" "dotnet20"

# Downloading dotnet20
POL_Download_Resource "http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/dotnetfx.exe" "93a13358898a54643adbca67d1533462" "dotnet20"

# Setting Fix 1
cp -f "l_intl.nls" "$WINEPREFIX/drive_c/windows/system32"
rm -rf "$WINEPREFIX/drive_c/windows/Microsoft.NET/Framework/v2.0.50727"
POL_Wine_InstallFonts

# Fix Fatal install error in wine 1.5.3 to 1.5.6 and wine current stable branch
if VersionLower $(POL_Config_PrefixRead VERSION) 1.5.7 && ! (VersionLower $(POL_Config_PrefixRead VERSION) 1.5.3) || VersionLower $(POL_Config_PrefixRead VERSION) 1.4.10; then
        POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f
fi

# Setting Fix 2
WINEDLLOVERRIDES="mscoree,fusion=n"
export WINEDLLOVERRIDES

# Installing dotnet20
cd "$POL_USER_ROOT/ressources/dotnet20"
POL_Wine_WaitBefore ".NET Framework 2.0"
POL_Wine --ignore-errors dotnetfx.exe /q /c:"install.exe /q"

# Setting Fix 3
rm -f "$WINEPREFIX/drive_c/windows/system32/msvc?80.dll"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k
Set_OS "winxp" "sp3"
cat << EOF > "Default_OS_Version.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"="Microsoft Windows XP"
"CSDVersion"="Service Pack 3"
"CurrentVersion"="5.3"
"CurrentBuildNumber"="2600"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"=dword:00000300
EOF
POL_Wine regedit "Default_OS_Version.reg"

Réponses

Edité par jack1142

Quentin PÂRIS Samedi 2 Aoüt 2014 à 20:24
Quentin PÂRIS Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -51,6 +51,7 @@
 export WINEDLLOVERRIDES
 
 # Installing dotnet20
+cd "$POL_USER_ROOT/ressources/dotnet20"
 POL_Wine_WaitBefore ".NET Framework 2.0"
 POL_Wine --ignore-errors dotnetfx.exe /q /c:"install.exe /q"
 

Nouveau code source

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-11-21 21:00)
# Last revision : (2013-04-12 21:00)
# Author : Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'This package does not work on a 64-bit installation')"
fi

# Remove wine-mono if present
POL_Wine uninstaller --remove '{E45D8920-A758-4088-B6C6-31DBB276992E}' || true

# Setting OS check Fix
Set_OS "win2k"
cat << EOF > "dotnet20_fix.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"="Microsoft Windows 2000"
"CSDVersion"=""
"CurrentVersion"="5.0"
"CurrentBuildNumber"="2195"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"=dword:00000000
EOF
POL_Wine regedit "dotnet20_fix.reg"

mkdir "$POL_USER_ROOT/ressources/dotnet20"
cd "$POL_USER_ROOT/ressources/dotnet20"

# Downloading dotnet20 pre-install fix
POL_Download_Resource "http://files.playonlinux.com/l_intl.nls" "3f138c7677ede64e8ad41e3277c86e9e" "dotnet20"

# Downloading dotnet20
POL_Download_Resource "http://download.microsoft.com/download/5/6/7/567758a3-759e-473e-bf8f-52154438565a/dotnetfx.exe" "93a13358898a54643adbca67d1533462" "dotnet20"

# Setting Fix 1
cp -f "l_intl.nls" "$WINEPREFIX/drive_c/windows/system32"
rm -rf "$WINEPREFIX/drive_c/windows/Microsoft.NET/Framework/v2.0.50727"
POL_Wine_InstallFonts

# Fix Fatal install error in wine 1.5.3 to 1.5.6 and wine current stable branch
if VersionLower $(POL_Config_PrefixRead VERSION) 1.5.7 && ! (VersionLower $(POL_Config_PrefixRead VERSION) 1.5.3) || VersionLower $(POL_Config_PrefixRead VERSION) 1.4.10; then
        POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f
fi

# Setting Fix 2
WINEDLLOVERRIDES="mscoree,fusion=n"
export WINEDLLOVERRIDES

# Installing dotnet20
cd "$POL_USER_ROOT/ressources/dotnet20"
POL_Wine_WaitBefore ".NET Framework 2.0"
POL_Wine --ignore-errors dotnetfx.exe /q /c:"install.exe /q"

# Setting Fix 3
rm -f "$WINEPREFIX/drive_c/windows/system32/msvc?80.dll"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k
Set_OS "winxp" "sp3"
cat << EOF > "Default_OS_Version.reg"
[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion]
"ProductName"="Microsoft Windows XP"
"CSDVersion"="Service Pack 3"
"CurrentVersion"="5.3"
"CurrentBuildNumber"="2600"
[HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Windows]
"CSDVersion"=dword:00000300
EOF
POL_Wine regedit "Default_OS_Version.reg"

Réponses

Anonymous
Samedi 13 Novembre 2021 à 19:01
Hello, MD5 checksum for dotnetfx.exe is changed. New checksum is: 21701848c9559c48db9bf49ac06ba383. If I could upload screenshot...

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com