POL_Install_gdiplus

Informations

Créateur Messages
GNU_Raziel

Information

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

Informations

Plate-formes :
Téléchargements : 4914595
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).
# [jack1142] (2022-01-15)
#   Fix URL (also a web.archive.org link but captured at different time)

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/20150602122012/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
coldscientist Jeudi 12 Mai 2022 à 16:06
coldscientist Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

For some reason, PlayOnMac couldn't download GDIPlus from Web Archive, so I updated the script to use WinXP Embedded "gdiplus.dll" version instead.

Differences

@@ -14,24 +14,26 @@
 #   Fix URL (* character into).
 # [jack1142] (2022-01-15)
 #   Fix URL (also a web.archive.org link but captured at different time)
-
+# [coldscientist] (2022-05-12)
+#   Fix URL (WinXP Embedded)
+ 
 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/20150602122012/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" "946d00d87e4094f3a6e425e2d538eadd"
  
+POL_Download_Resource "https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/secu/2018/07/windowsxp-kb4343674-x86-embedded-enu_ca27aebe8d7a210ffbc67934c144627a9d6f5463.exe" "00ef80d9a4f42ffb1626838658cb75fb"
+  
 # Installing GDIplus
-POL_Wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q
+POL_Wine windowsxp-kb4343674-x86-embedded-enu_ca27aebe8d7a210ffbc67934c144627a9d6f5463.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"
+        mv "$WINEPREFIX/drive_c/Tmp/asms/10/msft/windows/gdiplus/gdiplus.dll" 
 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"
\ No newline at end of file

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).
# [jack1142] (2022-01-15)
#   Fix URL (also a web.archive.org link but captured at different time)
# [coldscientist] (2022-05-12)
#   Fix URL (WinXP Embedded)
 
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://catalog.s.download.windowsupdate.com/d/msdownload/update/software/secu/2018/07/windowsxp-kb4343674-x86-embedded-enu_ca27aebe8d7a210ffbc67934c144627a9d6f5463.exe" "00ef80d9a4f42ffb1626838658cb75fb"
  
# Installing GDIplus
POL_Wine windowsxp-kb4343674-x86-embedded-enu_ca27aebe8d7a210ffbc67934c144627a9d6f5463.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" 
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

Vendredi 13 Mai 2022 à 12:08
The web archive link is still working for me :\
Some times web archive is unavailable for some minutes.
jack1142 Samedi 15 Janvier 2022 à 16:09
jack1142 Anonymous

Information

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

Messages

While trying to install Office 2010, I get a files mismatch when PlayOnLinux tries to install gdiplus:

It seems that the listed link is dead:

https://web.archive.org/web/20140615000000/http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe

This seems to be related to this issue:
https://github.com/Winetricks/winetricks/issues/1869

My improvement uses a bit newer capture from web.archive.org but it is still exactly the same executable as before.

Differences

@@ -12,6 +12,8 @@
 #   Fix dead URL (I could not find a URL hosted on Microsoft.com).
 # [Dadu042] (2019-09-11)
 #   Fix URL (* character into).
+# [jack1142] (2022-01-15)
+#   Fix URL (also a web.archive.org link but captured at different time)
 
 cd "$POL_USER_ROOT/ressources/"
 # Downloading GDIplus
@@ -19,7 +21,7 @@
 # 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/20150602122012/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).
# [jack1142] (2022-01-15)
#   Fix URL (also a web.archive.org link but captured at different time)

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/20150602122012/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

Mardi 18 Janvier 2022 à 22:28
Thanks. Script approved.

Edité par jack1142

Dadu042 Mardi 10 September 2019 à 11:51
Dadu042

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

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?
Anonymous
Mercredi 19 Janvier 2022 à 10:03
I've had the issue with the dead URL as well, even though it worked before. I've managed to recover the file from a different machine and uploaded it to https://archive.org/details/WindowsXP-KB975337-x86-ENU . The file can then be copied to ~/.PlayOnLinux/ressources/ and then you can run the script with no error.

Edité par Dadu042