POL_Install_gdiplus

Informations

Créateur Messages
GNU_Raziel

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 4640153
Wine: System

Retours d'expérience

Description

MS GDI Plus library.

 

Wikipedia.

Code source

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

Contribuer
Membre Messages
Dadu042 Mardi 10 September 2019 à 11:51
Dadu042
Modérateur

Information

Cette mise à jour a été acceptée par l'équipe

Messages

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

Nouveau code source

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

Réponses

Anonymous
Dimanche 14 Mars 2021 à 9:41
Can't get the updated link to work either. Have tried using it to download and install HoMM3 from GOG on my Mac, but to no avail. Can you please host the file somewhere and create an altered version of the script?

Edité par Dadu042