You are here    Forums    Your creations.    [Function]dotnet461 nl sv ru pl es de fr

The forum


Needed for Space Engineers

Author Replies
LinuxScripter Monday 23 April 2018 at 17:39
LinuxScripter Anonymous

The title says it all. This script is for installing .net framework 4.6.1 inside wineprefix. I've based it on our dotnet45 script + instructions on

Since it's going to be a function rather than application script I can't really test it. Feedback is welcome.


#!/usr/bin/env playonlinux-bash
# Date : (2018-04-23 17:15)
# Distribution used to test : Ubuntu 18.04 x64
# Author : LinuxScripter
# Licence : GPLv3
# PlayOnLinux: 4.2.10
# Function to install .NET 4.6.1 through PlayOnLinux/PlayOnMac
local INSTALLER="NDP461-KB3102436-x86-x64-AllOS-ENU.exe"
local INSTALLER_MD5="864056903748706e251fec9f5d887ef9"
# Removing mono
POL_Call POL_Remove_winemono

# Removing some leftover stuff that conflict with the installation
POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
# Dependencies, overrides, and Windows version settings
Set_OS "winxp"
POL_Call POL_Install_dotnet40
Set_OS "win7"
POL_Wine_OverrideDLL "native" "mscoree"
POL_Call POL_Install_dotnet45
# Creating Temp directory
POL_Download_Resource "$INSTALLER_URL" "$INSTALLER_MD5" "dotnet461"
# Installing .NET 4.6.1
POL_Wine_WaitBefore ".NET Framework 4.6.1"
cd "$POL_USER_ROOT/ressources/dotnet461"
POL_Wine --ignore-errors "$INSTALLER" /q /c:"install.exe /q"
Set_OS "win7"

Edited by LinuxScripter