POL_Install_wic

Informations

Creator Message
RobLoach

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 5968
Wine: System

Feedbacks

Description

The Windows Imaging Component (WIC) is a Component Object Model based imaging codecframework introduced in Windows Vista and Windows XP Service Pack 3 for working with and processing digital images and image metadata. It allows applications supporting the framework to automatically get support of installed codecs for graphics file formats.

Source code

#!/bin/bash
# Windows Imaging Component
# Date: (2014-01-16 21-00)
# Author: Rob Loach

# See: http://winetricks.googlecode.com/svn/trunk/src/winetricks
# load_windowscodecs

# Download the x64 or x86 Version
if [ "$POL_ARCH" = "amd64" ]; then
  POL_Download_Resource "http://download.microsoft.com/download/6/4/5/645FED5F-A6E7-44D9-9D10-FE83348796B0/wic_x64_enu.exe" "2eb787be1deb373efc259d1f42146419"
else
  POL_Download_Resource "http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_enu.exe" "53f5ccbe5fe06c3b40cc9e34ac909df7"
fi

# Remove old files
rm -f "$WINEPREFIX/drive_c/windows/system32/windowscodecs.dll"
rm -f "$WINEPREFIX/drive_c/windows/system32/windowscodecsext.dll"
rm -f "$WINEPREFIX/drive_c/windows/system32/photometadatahandler.dll"

# Run the Installer
cd "$POL_USER_ROOT/ressources/"
POL_Wine_WaitBefore "Windows Imaging Component"
if [ "$POL_ARCH" = "amd64" ]; then
  POL_Wine wic_x64_enu.exe /q /passive /overwriteoem
else
  POL_Wine wic_x86_enu.exe /q /passive /overwriteoem
fi
POL_Wine_WaitExit "Windows Imaging Component"

# Override the DDL
POL_Wine_OverrideDLL "native" "windowscodecs" "windowscodecsext"

Contributions

Filters:

Contribute
Member Message
RobLoach Saturday 17 January 2015 at 1:07
RobLoach

Information

This update has been approved by the team.

Message

Here is the updated one.

Differences

@@ -0,0 +1,32 @@
+#!/bin/bash
+# Windows Imaging Component
+# Date: (2014-01-16 21-00)
+# Author: Rob Loach
+
+# See: http://winetricks.googlecode.com/svn/trunk/src/winetricks
+# load_windowscodecs
+
+# Download the x64 or x86 Version
+if [ "$POL_ARCH" = "amd64" ]; then
+  POL_Download_Resource "http://download.microsoft.com/download/6/4/5/645FED5F-A6E7-44D9-9D10-FE83348796B0/wic_x64_enu.exe" "2eb787be1deb373efc259d1f42146419"
+else
+  POL_Download_Resource "http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_enu.exe" "53f5ccbe5fe06c3b40cc9e34ac909df7"
+fi
+
+# Remove old files
+rm -f "$WINEPREFIX/drive_c/windows/system32/windowscodecs.dll"
+rm -f "$WINEPREFIX/drive_c/windows/system32/windowscodecsext.dll"
+rm -f "$WINEPREFIX/drive_c/windows/system32/photometadatahandler.dll"
+
+# Run the Installer
+cd "$POL_USER_ROOT/ressources/"
+POL_Wine_WaitBefore "Windows Imaging Component"
+if [ "$POL_ARCH" = "amd64" ]; then
+  POL_Wine wic_x64_enu.exe /q /passive /overwriteoem
+else
+  POL_Wine wic_x86_enu.exe /q /passive /overwriteoem
+fi
+POL_Wine_WaitExit "Windows Imaging Component"
+
+# Override the DDL
+POL_Wine_OverrideDLL "native" "windowscodecs" "windowscodecsext"

New source code

#!/bin/bash
# Windows Imaging Component
# Date: (2014-01-16 21-00)
# Author: Rob Loach

# See: http://winetricks.googlecode.com/svn/trunk/src/winetricks
# load_windowscodecs

# Download the x64 or x86 Version
if [ "$POL_ARCH" = "amd64" ]; then
  POL_Download_Resource "http://download.microsoft.com/download/6/4/5/645FED5F-A6E7-44D9-9D10-FE83348796B0/wic_x64_enu.exe" "2eb787be1deb373efc259d1f42146419"
else
  POL_Download_Resource "http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_enu.exe" "53f5ccbe5fe06c3b40cc9e34ac909df7"
fi

# Remove old files
rm -f "$WINEPREFIX/drive_c/windows/system32/windowscodecs.dll"
rm -f "$WINEPREFIX/drive_c/windows/system32/windowscodecsext.dll"
rm -f "$WINEPREFIX/drive_c/windows/system32/photometadatahandler.dll"

# Run the Installer
cd "$POL_USER_ROOT/ressources/"
POL_Wine_WaitBefore "Windows Imaging Component"
if [ "$POL_ARCH" = "amd64" ]; then
  POL_Wine wic_x64_enu.exe /q /passive /overwriteoem
else
  POL_Wine wic_x86_enu.exe /q /passive /overwriteoem
fi
POL_Wine_WaitExit "Windows Imaging Component"

# Override the DDL
POL_Wine_OverrideDLL "native" "windowscodecs" "windowscodecsext"

Replies

Friday 3 January 2020 at 1:00
Script approved.
RobLoach Saturday 17 January 2015 at 0:42
RobLoach

Warning

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

Message

This was roughly ported from Winetricks:

http://winetricks.googlecode.com/svn/trunk/src/winetricks

Differences

@@ -0,0 +1,26 @@
+#!/bin/bash
+# Windows Imaging Component
+# Date: (2014-01-16 21-00)
+# Author: Rob Loach
+
+# See: http://winetricks.googlecode.com/svn/trunk/src/winetricks
+# load_windowscodecs
+
+# Download the x64 or x86 Version
+if [ "$POL_ARCH" = "amd64" ]; then
+  POL_Download_Resource "http://download.microsoft.com/download/6/4/5/645FED5F-A6E7-44D9-9D10-FE83348796B0/wic_x64_enu.exe" "2eb787be1deb373efc259d1f42146419" "wic"
+else
+  POL_DOWNLOAD_RESOURCE "http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_enu.exe" "53f5ccbe5fe06c3b40cc9e34ac909df7" "wic"
+fi
+
+# Run the Installer
+POL_Wine_WaitBefore "wic"
+if [ "$POL_ARCH" = "amd64" ]; then
+  POL_Wine "$POL_USER_ROOT/ressources/wic/wic_x64_enu.exe" /q /overwriteoem
+else
+  POL_Wine "$POL_USER_ROOT/ressources/wic/wic_x86_enu.exe" /q /overwriteoem
+fi
+POL_Wine_WaitExit "wic"
+
+# Override the DDL
+POL_Wine_OverrideDLL "native" "windowscodecs" "windowscodecsext"

New source code

#!/bin/bash
# Windows Imaging Component
# Date: (2014-01-16 21-00)
# Author: Rob Loach

# See: http://winetricks.googlecode.com/svn/trunk/src/winetricks
# load_windowscodecs

# Download the x64 or x86 Version
if [ "$POL_ARCH" = "amd64" ]; then
  POL_Download_Resource "http://download.microsoft.com/download/6/4/5/645FED5F-A6E7-44D9-9D10-FE83348796B0/wic_x64_enu.exe" "2eb787be1deb373efc259d1f42146419" "wic"
else
  POL_DOWNLOAD_RESOURCE "http://download.microsoft.com/download/f/f/1/ff178bb1-da91-48ed-89e5-478a99387d4f/wic_x86_enu.exe" "53f5ccbe5fe06c3b40cc9e34ac909df7" "wic"
fi

# Run the Installer
POL_Wine_WaitBefore "wic"
if [ "$POL_ARCH" = "amd64" ]; then
  POL_Wine "$POL_USER_ROOT/ressources/wic/wic_x64_enu.exe" /q /overwriteoem
else
  POL_Wine "$POL_USER_ROOT/ressources/wic/wic_x86_enu.exe" /q /overwriteoem
fi
POL_Wine_WaitExit "wic"

# Override the DDL
POL_Wine_OverrideDLL "native" "windowscodecs" "windowscodecsext"

Replies

Saturday 17 January 2015 at 1:06
Not this one... Submitting an updated one.

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