POL_Install_dotnet461

Informations

Creator Message
LinuxScripter Anonymous

Warning

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

Informations

Platforms:
Downloads: 110810
Wine: System

Feedbacks

Description

Install .NET Framework 4.6.1, 32 bits.

Source code

#!/bin/bash
# Date : (2018-11-07 21:00)
 
# Wine version used : 3.1
# Distribution used to test : Kubuntu 16.04 LTS amd64
# Author : der Papst
# Licence : GPLv3
# PlayOnLinux: 4.2.12

# CHANGELOG
# [Der Papst] (2018-11-07 21:00)
#   First script.
# [Dadu042] (2020-07-25 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')"
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"
 
# Dotnet 40
POL_SetupWindow_message "Installing .NET 4.0"
Set_OS "winxp"
POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
cd "$POL_USER_ROOT/ressources/dotnet40"
POL_Wine --ignore-errors "dotNetFx40_Full_x86_x64.exe" /q /c:"install.exe /q"
 
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
 
# Dotnet 45
POL_SetupWindow_message "Installing .NET 4.5"
Set_OS "win7"
POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
cd "$POL_USER_ROOT/ressources/dotnet45"
POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"
 
POL_Wine_OverrideDLL "native" "mscoree"
 
# Dotnet461
POL_SetupWindow_message "Installing .NET 4.6.1"
POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
cd "$POL_USER_ROOT/ressources/dotnet46"
POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 25 July 2020 at 17:47
Dadu042

Information

This update has been approved by the team.

Differences

@@ -6,6 +6,13 @@
 # Author : der Papst
 # Licence : GPLv3
 # PlayOnLinux: 4.2.12
+
+# CHANGELOG
+# [Der Papst] (2018-11-07 21:00)
+#   First script.
+# [Dadu042] (2020-07-25 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"
@@ -18,7 +25,7 @@
 fi
   
 #remove mono
-POL_SetupWindow_message "Removing mono..."
+POL_SetupWindow_message "Removing Mono..."
 POL_Call POL_Remove_winemono
  
 #cleanup
@@ -26,7 +33,7 @@
 POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
 rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"
  
-#dotnet 40
+# Dotnet 40
 POL_SetupWindow_message "Installing .NET 4.0"
 Set_OS "winxp"
 POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
@@ -36,7 +43,7 @@
 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
  
-#dotnet 45
+# Dotnet 45
 POL_SetupWindow_message "Installing .NET 4.5"
 Set_OS "win7"
 POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
@@ -45,11 +52,8 @@
  
 POL_Wine_OverrideDLL "native" "mscoree"
  
-#dotnet461
+# Dotnet461
 POL_SetupWindow_message "Installing .NET 4.6.1"
 POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
 cd "$POL_USER_ROOT/ressources/dotnet46"
 POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"
- 
-POL_SetupWindow_Close
-exit 0

New source code

#!/bin/bash
# Date : (2018-11-07 21:00)
 
# Wine version used : 3.1
# Distribution used to test : Kubuntu 16.04 LTS amd64
# Author : der Papst
# Licence : GPLv3
# PlayOnLinux: 4.2.12

# CHANGELOG
# [Der Papst] (2018-11-07 21:00)
#   First script.
# [Dadu042] (2020-07-25 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')"
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"
 
# Dotnet 40
POL_SetupWindow_message "Installing .NET 4.0"
Set_OS "winxp"
POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
cd "$POL_USER_ROOT/ressources/dotnet40"
POL_Wine --ignore-errors "dotNetFx40_Full_x86_x64.exe" /q /c:"install.exe /q"
 
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
 
# Dotnet 45
POL_SetupWindow_message "Installing .NET 4.5"
Set_OS "win7"
POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
cd "$POL_USER_ROOT/ressources/dotnet45"
POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"
 
POL_Wine_OverrideDLL "native" "mscoree"
 
# Dotnet461
POL_SetupWindow_message "Installing .NET 4.6.1"
POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
cd "$POL_USER_ROOT/ressources/dotnet46"
POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"

Replies

der Papst Saturday 10 November 2018 at 13:23
der Papst Anonymous

Warning

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

Message

added missing call

Differences

@@ -1,36 +1,55 @@
-#!/usr/bin/env playonlinux-bash
-# Date : (2018-04-23 17:15)
-# Distribution used to test : Ubuntu 18.04 x64
-# Author : LinuxScripter
+#!/bin/bash
+# Date : (2018-11-07 21:00)
+ 
+# Wine version used : 3.1
+# Distribution used to test : Kubuntu 16.04 LTS amd64
+# Author : der Papst
 # 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"
+# PlayOnLinux: 4.2.12
+ 
+[ "$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
   
-# Removing mono
+#remove mono
+POL_SetupWindow_message "Removing mono..."
 POL_Call POL_Remove_winemono
  
-# Removing some leftover stuff that conflict with the installation
+#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"
-  
-# Dependencies, overrides, and Windows version settings
+ 
+#dotnet 40
+POL_SetupWindow_message "Installing .NET 4.0"
 Set_OS "winxp"
-POL_Call POL_Install_dotnet40
+POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
+cd "$POL_USER_ROOT/ressources/dotnet40"
+POL_Wine --ignore-errors "dotNetFx40_Full_x86_x64.exe" /q /c:"install.exe /q"
+ 
+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
+ 
+#dotnet 45
+POL_SetupWindow_message "Installing .NET 4.5"
 Set_OS "win7"
+POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
+cd "$POL_USER_ROOT/ressources/dotnet45"
+POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"
+ 
 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"
\ No newline at end of file
+ 
+#dotnet461
+POL_SetupWindow_message "Installing .NET 4.6.1"
+POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
+cd "$POL_USER_ROOT/ressources/dotnet46"
+POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"
+ 
+POL_SetupWindow_Close
+exit 0

New source code

#!/bin/bash
# Date : (2018-11-07 21:00)
 
# Wine version used : 3.1
# Distribution used to test : Kubuntu 16.04 LTS amd64
# Author : der Papst
# Licence : GPLv3
# PlayOnLinux: 4.2.12
 
[ "$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"
 
#dotnet 40
POL_SetupWindow_message "Installing .NET 4.0"
Set_OS "winxp"
POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
cd "$POL_USER_ROOT/ressources/dotnet40"
POL_Wine --ignore-errors "dotNetFx40_Full_x86_x64.exe" /q /c:"install.exe /q"
 
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
 
#dotnet 45
POL_SetupWindow_message "Installing .NET 4.5"
Set_OS "win7"
POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
cd "$POL_USER_ROOT/ressources/dotnet45"
POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"
 
POL_Wine_OverrideDLL "native" "mscoree"
 
#dotnet461
POL_SetupWindow_message "Installing .NET 4.6.1"
POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
cd "$POL_USER_ROOT/ressources/dotnet46"
POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"
 
POL_SetupWindow_Close
exit 0

Replies

Sunday 11 November 2018 at 16:40
Why not using previous script for older dotnet version ?
der Papst Thursday 8 November 2018 at 21:48
der Papst Anonymous

Warning

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

Message

Reducing the overhead by only installing needed dependencies (and circumventing the bug of (unnecessary) msxml3 setup never finishing)
 

Differences

@@ -1,36 +1,52 @@
-#!/usr/bin/env playonlinux-bash
-# Date : (2018-04-23 17:15)
-# Distribution used to test : Ubuntu 18.04 x64
-# Author : LinuxScripter
+#!/bin/bash
+# Date : (2018-11-07 21:00)
+
+# Wine version used : 3.1
+# Distribution used to test : Kubuntu 16.04 LTS amd64
+# Author : der Papst
 # 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
+# PlayOnLinux: 4.2.12
+
+POL_Debug_Init
+POL_SetupWindow_Init
+
+if [ "$POL_ARCH" == "amd64" ]; then
+        POL_Debug_Fatal "$(eval_gettext '64-bit not supported')"
+fi
  
-# Removing some leftover stuff that conflict with the installation
+#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"
-  
-# Dependencies, overrides, and Windows version settings
+
+#dotnet 40
+POL_SetupWindow_message "Installing .NET 4.0"
 Set_OS "winxp"
-POL_Call POL_Install_dotnet40
+POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
+cd "$POL_USER_ROOT/ressources/dotnet40"
+POL_Wine --ignore-errors "dotNetFx40_Full_x86_x64.exe" /q /c:"install.exe /q"
+
+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
+
+#dotnet 45
+POL_SetupWindow_message "Installing .NET 4.5"
 Set_OS "win7"
+POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
+cd "$POL_USER_ROOT/ressources/dotnet45"
+POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"
+
 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"
\ No newline at end of file
+
+#dotnet461
+POL_SetupWindow_message "Installing .NET 4.6.1"
+POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
+cd "$POL_USER_ROOT/ressources/dotnet46"
+POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"
+
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2018-11-07 21:00)

# Wine version used : 3.1
# Distribution used to test : Kubuntu 16.04 LTS amd64
# Author : der Papst
# Licence : GPLv3
# PlayOnLinux: 4.2.12

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"

#dotnet 40
POL_SetupWindow_message "Installing .NET 4.0"
Set_OS "winxp"
POL_Download_Resource "http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe" "251743dfd3fda414570524bac9e55381" "dotnet40"
cd "$POL_USER_ROOT/ressources/dotnet40"
POL_Wine --ignore-errors "dotNetFx40_Full_x86_x64.exe" /q /c:"install.exe /q"

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

#dotnet 45
POL_SetupWindow_message "Installing .NET 4.5"
Set_OS "win7"
POL_Download_Resource "http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe" "d02dc8b69a702a47c083278938c4d2f1" "dotnet45"
cd "$POL_USER_ROOT/ressources/dotnet45"
POL_Wine --ignore-errors "dotnetfx45_full_x86_x64.exe" /q /c:"install.exe /q"

POL_Wine_OverrideDLL "native" "mscoree"

#dotnet461
POL_SetupWindow_message "Installing .NET 4.6.1"
POL_Download_Resource "https://download.microsoft.com/download/E/4/1/E4173890-A24A-4936-9FC9-AF930FE3FA40/NDP461-KB3102436-x86-x64-AllOS-ENU.exe" "864056903748706e251fec9f5d887ef9" "dotnet46"
cd "$POL_USER_ROOT/ressources/dotnet46"
POL_Wine --ignore-errors "NDP461-KB3102436-x86-x64-AllOS-ENU.exe" /q /c:"install.exe /q"

POL_SetupWindow_Close
exit 0

Replies

der Papst Wednesday 7 November 2018 at 20:55
der Papst Anonymous

Warning

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

Differences

@@ -0,0 +1,36 @@
+#!/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"
\ No newline at end of file

New source code

#!/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"

Replies