POL_Install_gdiplus

Informations

Creator Message
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3947406
Wine: System

Feedbacks

Description

MS GDI Plus library.

 

Wikipedia.

Source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-10-31 17:55)
# Last revision : (2012-02-28 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [GNU_Raziel] (2009-10-31)
#   First script.
# [Dadu042] (2019-09-10)
#   Fix dead URL (I could not find a URL hosted on Microsoft.com).
# [Dadu042] (2019-09-11)
#   Fix URL (* character into).

cd "$POL_USER_ROOT/ressources/"
# Downloading GDIplus

# URL dead as of 2019-09-10
# POL_Download_Resource "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"

POL_Download_Resource "https://web.archive.org/web/20140615000000/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
 
# Installing GDIplus
POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q
cd "$WINEPREFIX/drive_c/Tmp"
 
if [ "$POL_ARCH" == "amd64" ]; then
        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/system32"
fi
 
# Overriding dlls
POL_Wine_OverrideDLL "native" "gdiplus"

Contributions

Filters:

Contribute
Member Message
Dadu042 Tuesday 10 September 2019 at 11:51
Dadu042
Moderator

Information

This update has been approved by the team.

Message

The current URL is dead, Winetricks changed its code to get gdiplus file from the Windows 7 SP 1.

The current Microsoft web page allowing to download the XP gdiplus leads to a Error 404...

 

This script fix the issue by using one URL to the website www.archive.org (Windows XP's version).

 

Note: this POL function is often used by the function: POL_GoG_install.

Differences

@@ -10,14 +10,16 @@
 #   First script.
 # [Dadu042] (2019-09-10)
 #   Fix dead URL (I could not find a URL hosted on Microsoft.com).
- 
+# [Dadu042] (2019-09-11)
+#   Fix URL (* character into).
+
 cd "$POL_USER_ROOT/ressources/"
 # Downloading GDIplus
 
 # URL dead as of 2019-09-10
 # POL_Download_Resource "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
 
-POL_Download_Resource "https://web.archive.org/web/20140615000000*/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
+POL_Download_Resource "https://web.archive.org/web/20140615000000/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
  
 # Installing GDIplus
 POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2009-10-31 17:55)
# Last revision : (2012-02-28 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com
#
# CHANGELOG
# [GNU_Raziel] (2009-10-31)
#   First script.
# [Dadu042] (2019-09-10)
#   Fix dead URL (I could not find a URL hosted on Microsoft.com).
# [Dadu042] (2019-09-11)
#   Fix URL (* character into).

cd "$POL_USER_ROOT/ressources/"
# Downloading GDIplus

# URL dead as of 2019-09-10
# POL_Download_Resource "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"

POL_Download_Resource "https://web.archive.org/web/20140615000000/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
 
# Installing GDIplus
POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q
cd "$WINEPREFIX/drive_c/Tmp"
 
if [ "$POL_ARCH" == "amd64" ]; then
        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" "$WINEPREFIX/drive_c/windows/system32"
fi
 
# Overriding dlls
POL_Wine_OverrideDLL "native" "gdiplus"

Replies

Edited by Dadu042