Het forum

[Function]dotnet461

Needed for Space Engineers

Auteur Antwoorden
LinuxScripter Maandag 23 April 2018 om 17:39
LinuxScripterAnonymous

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 https://appdb.winehq.org/objectManager.php?sClass=version&iId=34219

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"
local INSTALLER_URL="https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe"
 
# 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"

Aangepast door LinuxScripter


der Papst Donderdag 25 October 2018 om 12:52
der PapstAnonymous

How can i try/use this script?

Tutul Donderdag 25 October 2018 om 19:17
Tutul

Can you put in in "Function" script ?


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
der Papst Zondag 4 November 2018 om 14:53
der PapstAnonymous

I tried but i couldn't find a folder containing those scripts. Can you tell me where they are stored on Linux (Ubuntu)?

Can you put in in "Function" script ?

 

Tutul Zondag 4 November 2018 om 21:00
Tutul

No here on the "supported software" section


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
der Papst Woensdag 7 November 2018 om 20:59
der PapstAnonymous

Done.

How can i use it now to install it in a virtual drive?

https://www.playonlinux.com/en/app-3402.html

 

(when i run it as an local script, i can't choose a virtual drive)

Aangepast door der Papst

Tutul Woensdag 7 November 2018 om 22:32
Tutul

Because it's suppose to be run within an other script :)


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !