POL_Install_dotnet471

Informations

Creator Message
Dadu042

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 19671
Wine: System

Feedbacks

Description

Work in progress.


 

Source code

#!/bin/bash
# Date : (2019-09-22 13:27)
  
# Wine version used : 4.15
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 13:27)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
# [Dadu042] (2019-09-27 19:23)
#   Add a warning. Little changes.
# [Dadu042] (2019-09-27 20:21)
#   Fix /norestart""
# [Dadu042] (2020-07-08 12:00)
#   Script does not end, so I remove  POL_SetupWindow_Close and exit 0, like in the Dotnet40 script.


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init

if [ "$POL_ARCH" == "amd64" ]; then
    # POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
    POL_SetupWindow_message "This package may not fully work on a 64-bit installation. 32-bit prefixes may work better." 
fi

#remove mono
POL_SetupWindow_message "Removing Mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
  


# Dotnet471
POL_SetupWindow_message "Installing .NET 4.7.1"
POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
cd "$POL_USER_ROOT/ressources/dotnet47"
POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"--timeout 5 /sfxlang:1027 /q /norestart"
POL_Wine_WaitExit ".NET Framework"

POL_Wine_OverrideDLL "native" "mscoree"
wineserver -k

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 25 July 2020 at 18:18
Dadu042

Information

This update has been approved by the team.

Message

Finally has to kill it.

Differences

@@ -50,6 +50,7 @@
 POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
 cd "$POL_USER_ROOT/ressources/dotnet47"
 POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"--timeout 5 /sfxlang:1027 /q /norestart"
-
+POL_Wine_WaitExit ".NET Framework"
 
 POL_Wine_OverrideDLL "native" "mscoree"
+wineserver -k
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2019-09-22 13:27)
  
# Wine version used : 4.15
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 13:27)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
# [Dadu042] (2019-09-27 19:23)
#   Add a warning. Little changes.
# [Dadu042] (2019-09-27 20:21)
#   Fix /norestart""
# [Dadu042] (2020-07-08 12:00)
#   Script does not end, so I remove  POL_SetupWindow_Close and exit 0, like in the Dotnet40 script.


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init

if [ "$POL_ARCH" == "amd64" ]; then
    # POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
    POL_SetupWindow_message "This package may not fully work on a 64-bit installation. 32-bit prefixes may work better." 
fi

#remove mono
POL_SetupWindow_message "Removing Mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
  


# Dotnet471
POL_SetupWindow_message "Installing .NET 4.7.1"
POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
cd "$POL_USER_ROOT/ressources/dotnet47"
POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"--timeout 5 /sfxlang:1027 /q /norestart"
POL_Wine_WaitExit ".NET Framework"

POL_Wine_OverrideDLL "native" "mscoree"
wineserver -k

Replies

Edited by Dadu042

Dadu042 Saturday 25 July 2020 at 18:02
Dadu042

Warning

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

Message

No idea where this 'install.exe' came out. Add '--timeout 5' like into Winetricks code.

Differences

@@ -49,7 +49,7 @@
 POL_SetupWindow_message "Installing .NET 4.7.1"
 POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
 cd "$POL_USER_ROOT/ressources/dotnet47"
-POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart"
+POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"--timeout 5 /sfxlang:1027 /q /norestart"
 
 
 POL_Wine_OverrideDLL "native" "mscoree"

New source code

#!/bin/bash
# Date : (2019-09-22 13:27)
  
# Wine version used : 4.15
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 13:27)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
# [Dadu042] (2019-09-27 19:23)
#   Add a warning. Little changes.
# [Dadu042] (2019-09-27 20:21)
#   Fix /norestart""
# [Dadu042] (2020-07-08 12:00)
#   Script does not end, so I remove  POL_SetupWindow_Close and exit 0, like in the Dotnet40 script.


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init

if [ "$POL_ARCH" == "amd64" ]; then
    # POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
    POL_SetupWindow_message "This package may not fully work on a 64-bit installation. 32-bit prefixes may work better." 
fi

#remove mono
POL_SetupWindow_message "Removing Mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
  


# Dotnet471
POL_SetupWindow_message "Installing .NET 4.7.1"
POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
cd "$POL_USER_ROOT/ressources/dotnet47"
POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"--timeout 5 /sfxlang:1027 /q /norestart"


POL_Wine_OverrideDLL "native" "mscoree"

Replies

Saturday 25 July 2020 at 18:20
It came from dotnet20 perhaps.
Dadu042 Wednesday 8 July 2020 at 14:00
Dadu042

Warning

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

Message

Better late than never...

Differences

@@ -16,6 +16,9 @@
 #   Add a warning. Little changes.
 # [Dadu042] (2019-09-27 20:21)
 #   Fix /norestart""
+# [Dadu042] (2020-07-08 12:00)
+#   Script does not end, so I remove  POL_SetupWindow_Close and exit 0, like in the Dotnet40 script.
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -50,6 +53,3 @@
 
 
 POL_Wine_OverrideDLL "native" "mscoree"
-  
-POL_SetupWindow_Close
-exit 0

New source code

#!/bin/bash
# Date : (2019-09-22 13:27)
  
# Wine version used : 4.15
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 13:27)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
# [Dadu042] (2019-09-27 19:23)
#   Add a warning. Little changes.
# [Dadu042] (2019-09-27 20:21)
#   Fix /norestart""
# [Dadu042] (2020-07-08 12:00)
#   Script does not end, so I remove  POL_SetupWindow_Close and exit 0, like in the Dotnet40 script.


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init

if [ "$POL_ARCH" == "amd64" ]; then
    # POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
    POL_SetupWindow_message "This package may not fully work on a 64-bit installation. 32-bit prefixes may work better." 
fi

#remove mono
POL_SetupWindow_message "Removing Mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
  


# Dotnet471
POL_SetupWindow_message "Installing .NET 4.7.1"
POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
cd "$POL_USER_ROOT/ressources/dotnet47"
POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart"


POL_Wine_OverrideDLL "native" "mscoree"

Replies

Dadu042 Friday 27 September 2019 at 20:23
Dadu042

Warning

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

Differences

@@ -1,5 +1,5 @@
 #!/bin/bash
-# Date : (2019-09-27 19:45)
+# Date : (2019-09-22 13:27)
   
 # Wine version used : 4.15
 # Distribution used to test : Kubuntu 18.04 LTS amd64
@@ -8,12 +8,14 @@
 # PlayOnLinux: 4.3.4
 #
 # CHANGELOG
-# [Dadu042] (2019-09-27 19:45)
+# [Dadu042] (2019-09-27 13:27)
 #   First script.
 #   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
 #   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
-#
-# To see in Winetricks code:  "Running un-official repacked .NET 4.7.2 setup until the official version is fixed.",
+# [Dadu042] (2019-09-27 19:23)
+#   Add a warning. Little changes.
+# [Dadu042] (2019-09-27 20:21)
+#   Fix /norestart""
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -37,16 +39,17 @@
     
 # POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
 # POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
+  
 
 
-# Dotnet472
-POL_SetupWindow_message "Installing .NET 4.7.2"
-POL_Download_Resource "https://download.microsoft.com/download/6/E/4/6E48E8AB-DC00-419E-9704-06DD46E5F81D/NDP472-KB4054530-x86-x64-AllOS-ENU.exe" "87450cfa175585b23a76bbd7052ee66b" "dotnet472"
-cd "$POL_USER_ROOT/ressources/dotnet472"
-POL_Wine --ignore-errors "NDP472-KB4054530-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart""
+# Dotnet471
+POL_SetupWindow_message "Installing .NET 4.7.1"
+POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
+cd "$POL_USER_ROOT/ressources/dotnet47"
+POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart"
 
 
 POL_Wine_OverrideDLL "native" "mscoree"
   
 POL_SetupWindow_Close
-exit 0
\ No newline at end of file
+exit 0

New source code

#!/bin/bash
# Date : (2019-09-22 13:27)
  
# Wine version used : 4.15
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 13:27)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
# [Dadu042] (2019-09-27 19:23)
#   Add a warning. Little changes.
# [Dadu042] (2019-09-27 20:21)
#   Fix /norestart""

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init

if [ "$POL_ARCH" == "amd64" ]; then
    # POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
    POL_SetupWindow_message "This package may not fully work on a 64-bit installation. 32-bit prefixes may work better." 
fi

#remove mono
POL_SetupWindow_message "Removing Mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
  


# Dotnet471
POL_SetupWindow_message "Installing .NET 4.7.1"
POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
cd "$POL_USER_ROOT/ressources/dotnet47"
POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart"


POL_Wine_OverrideDLL "native" "mscoree"
  
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Friday 27 September 2019 at 19:24
Dadu042

Warning

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

Differences

@@ -1,19 +1,19 @@
 #!/bin/bash
-# Date : (2019-09-22 13:27)
+# Date : (2019-09-27 19:45)
   
-# Wine version used : 4.0.2
+# Wine version used : 4.15
 # Distribution used to test : Kubuntu 18.04 LTS amd64
 # Author : Dadu042
 # Licence : GPLv3
 # PlayOnLinux: 4.3.4
 #
 # CHANGELOG
-# [Dadu042] (2019-09-27 13:27)
+# [Dadu042] (2019-09-27 19:45)
 #   First script.
 #   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
 #   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
-# [Dadu042] (2019-09-27 19:23)
-#   Add a warning. Little changes.
+#
+# To see in Winetricks code:  "Running un-official repacked .NET 4.7.2 setup until the official version is fixed.",
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -37,17 +37,16 @@
     
 # POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
 # POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
-  
 
 
-# Dotnet471
-POL_SetupWindow_message "Installing .NET 4.7.1"
-POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
-cd "$POL_USER_ROOT/ressources/dotnet47"
-POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart""
+# Dotnet472
+POL_SetupWindow_message "Installing .NET 4.7.2"
+POL_Download_Resource "https://download.microsoft.com/download/6/E/4/6E48E8AB-DC00-419E-9704-06DD46E5F81D/NDP472-KB4054530-x86-x64-AllOS-ENU.exe" "87450cfa175585b23a76bbd7052ee66b" "dotnet472"
+cd "$POL_USER_ROOT/ressources/dotnet472"
+POL_Wine --ignore-errors "NDP472-KB4054530-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart""
 
 
 POL_Wine_OverrideDLL "native" "mscoree"
   
 POL_SetupWindow_Close
-exit 0
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2019-09-27 19:45)
  
# Wine version used : 4.15
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 19:45)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
#
# To see in Winetricks code:  "Running un-official repacked .NET 4.7.2 setup until the official version is fixed.",

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init

if [ "$POL_ARCH" == "amd64" ]; then
    # POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
    POL_SetupWindow_message "This package may not fully work on a 64-bit installation. 32-bit prefixes may work better." 
fi

#remove mono
POL_SetupWindow_message "Removing Mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f


# Dotnet472
POL_SetupWindow_message "Installing .NET 4.7.2"
POL_Download_Resource "https://download.microsoft.com/download/6/E/4/6E48E8AB-DC00-419E-9704-06DD46E5F81D/NDP472-KB4054530-x86-x64-AllOS-ENU.exe" "87450cfa175585b23a76bbd7052ee66b" "dotnet472"
cd "$POL_USER_ROOT/ressources/dotnet472"
POL_Wine --ignore-errors "NDP472-KB4054530-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /sfxlang:1027 /q /norestart""


POL_Wine_OverrideDLL "native" "mscoree"
  
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

Dadu042 Friday 27 September 2019 at 13:32
Dadu042

Warning

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

Differences

@@ -0,0 +1,51 @@
+#!/bin/bash
+# Date : (2019-09-22 13:27)
+  
+# Wine version used : 4.0.2
+# Distribution used to test : Kubuntu 18.04 LTS amd64
+# Author : Dadu042
+# Licence : GPLv3
+# PlayOnLinux: 4.3.4
+#
+# CHANGELOG
+# [Dadu042] (2019-09-27 13:27)
+#   First script.
+#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
+#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks
+
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+POL_Debug_Init
+POL_SetupWindow_Init
+ 
+# if [ "$POL_ARCH" == "amd64" ]; then
+#        POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
+# fi
+
+#remove mono
+POL_SetupWindow_message "Removing mono..."
+POL_Call POL_Remove_winemono
+  
+#cleanup
+# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
+# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
+# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
+    
+# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
+# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
+  
+
+
+# Dotnet471
+POL_SetupWindow_message "Installing .NET 4.7.1"
+POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
+cd "$POL_USER_ROOT/ressources/dotnet47"
+POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"
+
+
+POL_Wine_OverrideDLL "native" "mscoree"
+  
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2019-09-22 13:27)
  
# Wine version used : 4.0.2
# Distribution used to test : Kubuntu 18.04 LTS amd64
# Author : Dadu042
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [Dadu042] (2019-09-27 13:27)
#   First script.
#   I have inspired from 'POL_Install_dotnet461' by LinuxScripter,
#   and from the Winetricks sourcecode at:  https://github.com/Winetricks/winetricks/blob/master/src/winetricks


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
POL_Debug_Init
POL_SetupWindow_Init
 
# if [ "$POL_ARCH" == "amd64" ]; then
#        POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
# fi

#remove mono
POL_SetupWindow_message "Removing mono..."
POL_Call POL_Remove_winemono
  
#cleanup
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5" /f
# POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
# rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
    
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Install /t REG_DWORD /d 0001 /f
# POL_Wine --ignore-errors reg add "HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full" /v Version /t REG_SZ /d "4.0.30319" /f
  


# Dotnet471
POL_SetupWindow_message "Installing .NET 4.7.1"
POL_Download_Resource "https://download.microsoft.com/download/C/4/C/C4CF757F-7578-4608-B483-7C51E16FB58F/NDP471-KB4033342-x86-x64-AllOS-ENU.exe" "660e1a104f209f3cdb55b6d4e9ffa475" "dotnet47"
cd "$POL_USER_ROOT/ressources/dotnet47"
POL_Wine --ignore-errors "NDP471-KB4033342-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"


POL_Wine_OverrideDLL "native" "mscoree"
  
POL_SetupWindow_Close
exit 0

Replies

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