POL_Install_dotnet35

Informations

Créateur Messages
GNU_Raziel

Information

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

Informations

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

Retours d'expérience

Description

Install .NET Framework 3.5

This component does not work in 64-bit virtual drives

Code source

#!/bin/bash
# PlayOnLinux Function
# Date : (2011-03-17 21:00)
# Last revision : (2013-04-12 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com
# [xplicit] (2014-01-11 00:45)
#   fix for versions >= 1.5.21


# 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

# Install dotnet30sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/system32/XpsFilt.dll" ]; then
        POL_Call POL_Install_dotnet30sp1
fi

# Workaround the bug http://code.google.com/p/winetricks/issues/detail?id=311
if ! (VersionLower $(POL_Config_PrefixRead VERSION) 1.5.21); then
        POL_Call POL_Install_msxml3
fi

# Ignore errors message
if VersionLower $(POL_Config_PrefixRead VERSION) 1.4.2; then
        POL_SetupWindow_message "$(eval_gettext 'If you see error messages during DotNet 3.5 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting OS check Fix
Set_OS "winxp" "sp3"
cat << EOF > "dotnet35_fix.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 "dotnet35_fix.reg"

mkdir -p "$POL_USER_ROOT/ressources/dotnet35"
cd "$POL_USER_ROOT/ressources/dotnet35"
# Downloading dotnet35
POL_Download_Resource "http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe" "d1b341c1bc8b96e4898450c9881b1425" "dotnet35"

# Setting Fix 1
POL_Wine --ignore-errors reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5" /f
WINEDLLOVERRIDES="ngen.exe,regsvcs.exe,mscorsvw.exe=b"
export WINEDLLOVERRIDES
wineserver -k

# Installing dotnet35
cabextract -d "$WINEPREFIX/drive_c/windows/temp/" -L -F '*' dotnetfx35.exe
cd "$WINEPREFIX/drive_c/windows/temp/wcu/dotnetframework/dotnetfx35/x86/"
cabextract -d . -L -F '*' netfx35_x86.exe
POL_Wine_WaitBefore ".NET Framework 3.5"
POL_Wine --ignore-errors msiexec /i vs_setup.msi ADDEPLOY=1
POL_Wine_WaitExit ".NET Framework 3.5"
unset WINEDLLOVERRIDES
wineserver -k
rm -rf "$WINEPREFIX"/drive_c/windows/temp/*

Contributions

Filters:

Contribuer
Membre Messages
bbperrault Vendredi 28 Décembre 2018 à 12:25
bbperrault Anonymous

Messages

Thanks for that. I'm running into htis issue but I4m confused how to use the updated POL file? How do I get in included in the list of POL available to install on my existing virtual drive

Réponses

Jeudi 2 Janvier 2020 à 8:00
Once the script approved, it is automatically updated by POL.
savornicesei Jeudi 15 Novembre 2018 à 22:04
savornicesei Anonymous

Information

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

Messages

Added /f  parameter to reg delete which deletes the existing registry subkey or entry without asking for confirmation.

This should prevent the infinite loop.

Differences

@@ -50,7 +50,7 @@
 POL_Download_Resource "http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe" "d1b341c1bc8b96e4898450c9881b1425" "dotnet35"
 
 # Setting Fix 1
-POL_Wine --ignore-errors reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5"
+POL_Wine --ignore-errors reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5" /f
 WINEDLLOVERRIDES="ngen.exe,regsvcs.exe,mscorsvw.exe=b"
 export WINEDLLOVERRIDES
 wineserver -k

Nouveau code source

#!/bin/bash
# PlayOnLinux Function
# Date : (2011-03-17 21:00)
# Last revision : (2013-04-12 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com
# [xplicit] (2014-01-11 00:45)
#   fix for versions >= 1.5.21


# 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

# Install dotnet30sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/system32/XpsFilt.dll" ]; then
        POL_Call POL_Install_dotnet30sp1
fi

# Workaround the bug http://code.google.com/p/winetricks/issues/detail?id=311
if ! (VersionLower $(POL_Config_PrefixRead VERSION) 1.5.21); then
        POL_Call POL_Install_msxml3
fi

# Ignore errors message
if VersionLower $(POL_Config_PrefixRead VERSION) 1.4.2; then
        POL_SetupWindow_message "$(eval_gettext 'If you see error messages during DotNet 3.5 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting OS check Fix
Set_OS "winxp" "sp3"
cat << EOF > "dotnet35_fix.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 "dotnet35_fix.reg"

mkdir -p "$POL_USER_ROOT/ressources/dotnet35"
cd "$POL_USER_ROOT/ressources/dotnet35"
# Downloading dotnet35
POL_Download_Resource "http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe" "d1b341c1bc8b96e4898450c9881b1425" "dotnet35"

# Setting Fix 1
POL_Wine --ignore-errors reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5" /f
WINEDLLOVERRIDES="ngen.exe,regsvcs.exe,mscorsvw.exe=b"
export WINEDLLOVERRIDES
wineserver -k

# Installing dotnet35
cabextract -d "$WINEPREFIX/drive_c/windows/temp/" -L -F '*' dotnetfx35.exe
cd "$WINEPREFIX/drive_c/windows/temp/wcu/dotnetframework/dotnetfx35/x86/"
cabextract -d . -L -F '*' netfx35_x86.exe
POL_Wine_WaitBefore ".NET Framework 3.5"
POL_Wine --ignore-errors msiexec /i vs_setup.msi ADDEPLOY=1
POL_Wine_WaitExit ".NET Framework 3.5"
unset WINEDLLOVERRIDES
wineserver -k
rm -rf "$WINEPREFIX"/drive_c/windows/temp/*

Réponses

golyalpha Samedi 6 Octobre 2018 à 14:13
golyalpha Anonymous

Messages

POL_Wine --ignore-errors reg delete "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v3.5"
Causes an infinite loop with the following log output:
[10/06/18 13:50:34] - Running wine- reg delete HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5 (Working directory : /home/radek/.PlayOnLinux/ressources/dotnet35)
Are you sure you want to delete the registry key 'HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v3.5'? (Yes|No)

The last line infinitely repeating itself with no terminating newline. (Filling up the log up to ridiculous sizes, easily 20 GB in a few hours, if not less)

Réponses

Anonymous
Samedi 6 Octobre 2018 à 14:19
Most people also think that this issue is being cause by msxml3 (because of the installer hanging on "Installing msxml3" message, but this is actually, quite obviously not the issue, closer inspection of the logs confirms that the msxml3 script finishes long before this happens.