POL_Install_dotnet30

Informations

Creator Message
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1403407
Wine: System

Feedbacks

Description

Install .Net Framework 3.0

This component does not work in 64-bit virtual drives

Source code

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

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi

# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi

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

# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi

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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done

mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
POL_Download_Resource "https://web.archive.org/web/20061130220825if_/http://download.microsoft.com/download/3/F/0/3F0A922C-F239-4B9B-9CB0-DF53621C57D9/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"

# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f

# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Contributions

Filters:

Contribute
Member Message
LinuxScripter Thursday 23 November 2017 at 12:13
LinuxScripter Anonymous

Information

This update has been approved by the team.

Message

Changed the link.

Differences

@@ -62,9 +62,7 @@
 
 mkdir "$POL_USER_ROOT/ressources/dotnet30"
 cd "$POL_USER_ROOT/ressources/dotnet30"
-# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
-POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
-# POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+POL_Download_Resource "https://web.archive.org/web/20061130220825if_/http://download.microsoft.com/download/3/F/0/3F0A922C-F239-4B9B-9CB0-DF53621C57D9/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 
 # Setting Fix 2
 POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

New source code

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

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi

# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi

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

# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi

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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done

mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
POL_Download_Resource "https://web.archive.org/web/20061130220825if_/http://download.microsoft.com/download/3/F/0/3F0A922C-F239-4B9B-9CB0-DF53621C57D9/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"

# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f

# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Replies

St3v3d3 Monday 9 October 2017 at 11:58
St3v3d3 Anonymous

Message

Problem

I still have issues installing the dot net 30 POL.

The process chokes when trying to download ,,,

http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe

... with the error message "An error occurred during download. Do you want to retry?" (Yes/No).

No amount of retries help.

If I try this link manually in a web browser, I get the "unable to connect" error.

Possible Solution

Could the link be changed to the following download link that does work ...

https://web.archive.org/web/20061130220825/http://download.microsoft.com/download/3/F/0/3F0A922C-F239-4B9B-9CB0-DF53621C57D9/dotnetfx3.exe

The downloaded file has the following sha256sum ...

6cf8921e00f52bbd888aa7a520a7bac47e818e2a850bcc44494c64d6cbfafdac

Google's Virus Total site shows that this file is good (not blacklisted as a virus) ...

https://www.virustotal.com/#/file/6cf8921e00f52bbd888aa7a520a7bac47e818e2a850bcc44494c64d6cbfafdac/detection

 

Replies

Anonymous
Monday 9 October 2017 at 14:53
I do not think that will ne fixed, singe devs are focused on POL 5. For which application iOS thi
Anonymous
Monday 9 October 2017 at 14:54
*is this needed ?
Anonymous
Wednesday 11 October 2017 at 17:40
Thanks for letting me know the devs priorities. The Dot net 30 POL is required to install the windows program Vegas Pro 8c https://www.playonlinux.com/en/app-2654-Vegas_Pro_80c.html and I am sure it is required for many other windows programs too. I can do a manual work around in the mean time but just hope it be fixed at some point in the future so others can benefit. I don't seem to be able to update to later versions of dot net while the dot net 3 POL fails.
Anonymous
Wednesday 11 October 2017 at 20:08
Does the program works without it in latest wine staging ?
Anonymous
Wednesday 15 November 2017 at 12:08
No it needs dot net 30 POL so that dot net 35 POL can be installed.
pi4630 Monday 1 May 2017 at 17:20
pi4630 Anonymous

Message

Where do I change that line? I grepped for it starting from .PlayOnLinux directory, but find it in /tmp/POL_Install_dotnet30, which gets overwritten, when I use POL gui.

 

Thanks

Replies

Anonymous
Friday 4 August 2017 at 17:15
functions are downloaded from the website, that's why you won't find them. You will only find a cache.
you have to copy the updated function to ~/.PlayOnLinux/configurations/function_overrides/ to a file named POL_Install_dotnet30
and activate overrides by adding to /.PlayOnLinux/configurations/function_overrides :
ALLOW_FUNCTION_OVERRIDES=TRUE
(caps are importants)

but.. that said, perhaps it won't work, cause downloading on archive.org seems different.
I solved the pblm by downloading dotnetfx3.exe on my browser, and copy it to ~/.PlayOnLinux/ressources/dotnet30
so PlayOnLinux think it has already downloaded it, and use the cache.
l.ukasz Thursday 13 October 2016 at 20:01
l.ukasz Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,9 +1,9 @@
 #!/bin/bash
 # PlayOnLinux Function
 # Date : (2009-11-21 16:00)
-# Last revision : (2013-04-12 21:00)
+# Last revision : (2016-10-13 20:00)
 # Author : Berillions
-# Updated by : GNU_Raziel
+# Updated by : l.ukasz, GNU_Raziel
 # Only For : http://www.playonlinux.com
 
 # Check Kernel ptrace
@@ -62,8 +62,9 @@
 
 mkdir "$POL_USER_ROOT/ressources/dotnet30"
 cd "$POL_USER_ROOT/ressources/dotnet30"
-# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
-POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link (from Internet Archive WayBack Machine)
+POL_Download_Resource "https://web.archive.org/web/20160618210404/http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 # POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 
 # Setting Fix 2

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-11-21 16:00)
# Last revision : (2016-10-13 20:00)
# Author : Berillions
# Updated by : l.ukasz, GNU_Raziel
# Only For : http://www.playonlinux.com

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi

# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi

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

# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi

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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done

mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link (from Internet Archive WayBack Machine)
POL_Download_Resource "https://web.archive.org/web/20160618210404/http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"

# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f

# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Replies

Anonymous
Thursday 13 October 2016 at 20:01
I updated the link to the file - archived version from Internet Archive Wayback Machine. Everything should work now, but I could not test it yourself because of the fact that this is no ordinary script. In the future, you can look for another link for the file, in order not to burden the Internet Archive Wayback Machine servers.
Anonymous
Wednesday 19 October 2016 at 20:11
This update worked for me. Thank you l.ukasz
Anonymous
Tuesday 11 July 2017 at 13:18
how do I run this script I use the run local script but the process instantly dies
l.ukasz Thursday 13 October 2016 at 19:41
l.ukasz Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I updated the link to the file - archived version from Internet Archive Wayback Machine. Everything should work now, but I could not test it yourself because of the fact that this is no ordinary script. In the future, you can look for another link for the file, in order not to burden the Internet Archive Wayback Machine servers.

Differences

@@ -1,8 +1,8 @@
 #!/bin/bash
 # PlayOnLinux Function
 # Date : (2009-11-21 16:00)
-# Last revision : (2013-04-12 21:00)
-# Author : Berillions
+# Last revision : (2016-10-13 19:30)
+# Author : l.ukasz, Berillions
 # Updated by : GNU_Raziel
 # Only For : http://www.playonlinux.com
 
@@ -62,8 +62,9 @@
 
 mkdir "$POL_USER_ROOT/ressources/dotnet30"
 cd "$POL_USER_ROOT/ressources/dotnet30"
-# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
-POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link (from Internet Archive WayBack Machine)
+POL_Download_Resource "https://web.archive.org/web/20160618210404/http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 # POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 
 # Setting Fix 2

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-11-21 16:00)
# Last revision : (2016-10-13 19:30)
# Author : l.ukasz, Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi

# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi

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

# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi

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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done

mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link (from Internet Archive WayBack Machine)
POL_Download_Resource "https://web.archive.org/web/20160618210404/http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"

# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f

# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Replies

l.ukasz Thursday 13 October 2016 at 19:39
l.ukasz Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

I updated the link to the file - archived version from Internet Archive Wayback Machine. Everything should work now, but I could not test it yourself because of the fact that this is no ordinary script. In the future, you can look for another link for the file, in order not to burden the Internet Archive Wayback Machine servers.

Differences

@@ -1,36 +1,36 @@
 #!/bin/bash
 # PlayOnLinux Function
 # Date : (2009-11-21 16:00)
-# Last revision : (2013-04-12 21:00)
+# Last revision : (2016-10-13 19:30)
 # Author : Berillions
-# Updated by : GNU_Raziel
+# Updated by : l.ukasz, GNU_Raziel
 # Only For : http://www.playonlinux.com
-
+ 
 # Check Kernel ptrace
 if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
-	PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
-	if [ "$PTRACE_CHECK" != 0 ]; then
-		MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
-		URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
-		POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
-		[ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
-		NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
-	fi
+        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
+        if [ "$PTRACE_CHECK" != 0 ]; then
+                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
+                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
+                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
+                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
+                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
+        fi
 fi
-
+ 
 # Checking wine arch
 if [ "$POL_ARCH" == "amd64" ]; then
-	POL_Debug_Fatal "$(eval_gettext 'This package does not work on a 64-bit installation')"
+        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 dotnet20sp1 if needed
 if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
-	POL_Call POL_Install_dotnet20sp2
+        POL_Call POL_Install_dotnet20sp2
 fi
-
+ 
 # Setting OS check Fix
 Set_OS "winxp" "sp3"
 cat << EOF > "dotnet30_fix.reg"
@@ -43,47 +43,48 @@
 "CSDVersion"=dword:00000300
 EOF
 POL_Wine regedit "dotnet30_fix.reg"
-
+ 
 # 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.0 installation, you can ignore them without issues')" "$TITLE"
+        POL_SetupWindow_message "$(eval_gettext 'If you see error messages during DotNet 3.0 installation, you can ignore them without issues')" "$TITLE"
 fi
-
+ 
 # Setting Fix 1
 POL_Wine_WaitBefore ".NET Framework 3.0 fix"
 if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
-	mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
+        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
 fi
-
+ 
 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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
 done
-
+ 
 mkdir "$POL_USER_ROOT/ressources/dotnet30"
 cd "$POL_USER_ROOT/ressources/dotnet30"
-# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
-POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link (from Internet Archive WayBack Machine)
+POL_Download_Resource "https://web.archive.org/web/20160618210404/http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 # POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
-
+ 
 # Setting Fix 2
 POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"
-
+ 
 # Setting Fix 3
 if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
-	WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
-	WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
+        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
+        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
 else
-	WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
+        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
 fi
 export WINEDLLOVERRIDES
 wineserver -k
 POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f
-
+ 
 # Installing dotnet30
 POL_Wine_WaitBefore ".NET Framework 3.0"
 POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"
-
+ 
 # Restoring wine version
 unset WINEDLLOVERRIDES
 wineserver -k
\ No newline at end of file

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-11-21 16:00)
# Last revision : (2016-10-13 19:30)
# Author : Berillions
# Updated by : l.ukasz, GNU_Raziel
# Only For : http://www.playonlinux.com
 
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi
 
# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi
 
# Setting OS check Fix
Set_OS "winxp" "sp3"
cat << EOF > "dotnet30_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 "dotnet30_fix.reg"
 
# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi
 
# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi
 
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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done
 
mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link (from Internet Archive WayBack Machine)
POL_Download_Resource "https://web.archive.org/web/20160618210404/http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 
# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"
 
# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f
 
# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"
 
# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Replies

Anonymous
Thursday 13 October 2016 at 19:42
This can be deleted. It seems that it also changed spacing and list of changes does not look good. Sorry.
Quentin PÂRIS Thursday 31 July 2014 at 19:30
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -63,8 +63,8 @@
 mkdir "$POL_USER_ROOT/ressources/dotnet30"
 cd "$POL_USER_ROOT/ressources/dotnet30"
 # Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
-# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
-POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 
 # Setting Fix 2
 POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

New source code

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

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi

# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi

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

# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi

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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done

mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
# POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"

# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f

# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Replies

Quentin PÂRIS Thursday 24 July 2014 at 15:59
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -63,7 +63,8 @@
 mkdir "$POL_USER_ROOT/ressources/dotnet30"
 cd "$POL_USER_ROOT/ressources/dotnet30"
 # Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
-POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
+POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
 
 # Setting Fix 2
 POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

New source code

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

# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                MSG="$(eval_gettext 'Package installation will fail until you set /proc/sys/kernel/yama/ptrace_scope to 0')"
                URL="http://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
                POL_SetupWindow_question "$MSG\n$(eval_gettext 'Open $URL now?')"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
                NOBUGREPORT="YES" POL_Debug_Fatal "$MSG"
        fi
fi

# 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 dotnet20sp1 if needed
if [ ! -e "$WINEPREFIX/drive_c/windows/winsxs/manifests/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.3053_x-ww_b80fa8ca.cat" ]; then
        POL_Call POL_Install_dotnet20sp2
fi

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

# 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.0 installation, you can ignore them without issues')" "$TITLE"
fi

# Setting Fix 1
POL_Wine_WaitBefore ".NET Framework 3.0 fix"
if [ ! -e "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0" ]; then
        mkdir -p "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0"
fi

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 "$WINEPREFIX/drive_c/windows/system32/spupdsvc.exe" "$WINEPREFIX/drive_c/windows/SYSMSICache/Framework/v3.0/dotnetfx3langpack${lang}.exe"
done

mkdir "$POL_USER_ROOT/ressources/dotnet30"
cd "$POL_USER_ROOT/ressources/dotnet30"
# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"

# Setting Fix 2
POL_Wine --ignore-errors sc delete "FontCache3.0.0.0"

# Setting Fix 3
if [ "$(POL_Config_PrefixRead VERSION)" = "1.5.6" ]; then
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
        WINEDLLOVERRIDES="mscoree,fusion=n":$WINEDLLOVERRIDES
else
        WINEDLLOVERRIDES="ngen.exe,mscorsvw.exe=b"
fi
export WINEDLLOVERRIDES
wineserver -k
POL_Wine reg add "HKLM\\Software\\Microsoft\\.NETFramework" /v InstallRoot /d "C:\Windows\Microsoft.NET\Framework\\" /f

# Installing dotnet30
POL_Wine_WaitBefore ".NET Framework 3.0"
POL_Wine --ignore-errors dotnetfx3.exe /q /c:"install.exe /q"

# Restoring wine version
unset WINEDLLOVERRIDES
wineserver -k

Replies

Anonymous
Thursday 31 July 2014 at 18:53
# Downloading dotnet30 - official "Microsoft Download Center" link removed, using alternative Russian University link
# POL_Download_Resource "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
POL_Download_Resource "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" "dotnet30"
Anonymous
Thursday 31 July 2014 at 18:55
Ahh sorry. This is the first time I tried to post a reply. What I meant is that the "http://fs33.filehippo.com/4725/244e3c429e2c454d8e99b5bb2ee0e176/dotnetfx3.exe" link does not work anymore, and ended up failing the md5sum check.

The good link "http://uni-smr.ac.ru/archive/win/MS%20.NET%20Framework/3.0/dotnetfx3.exe" "7b26435437e8d779ff0084d4ea96d15a" is still commented out. You should uncomment the russian university link line and comment out the filehippo line.
Anonymous
Friday 19 August 2016 at 18:11
http://uni-smr.ac.ru appears to be down, what's a good mirror?
Anonymous
Saturday 8 October 2016 at 7:09
I downloaded it from here http://www.oldversion.com/windows/net-framework-3-0
Anonymous
Saturday 8 October 2016 at 7:14
Also according to this link https://github.com/petchema/playonlinux/blob/master/functions/POL_Install_dotnet30 you can download it straight from http://files.playonlinux.com/dotnet/3/dotnetfx3.exe -- what gives, PoL?

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