POL_Function_override_app_dlls

Informations

Creator Message
GNU_Raziel

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 203077
Wine: System

Feedbacks

Description

Allow overriding dlls for specified app.
Usage : POL_Function_override_app_dlls application mode dll
Ex : POL_Function_override_app_dlls explorer.exe builtin comctl32
POL_Function_override_app_dlls explorer.exe builtin comctl32 msvcr80 msvcp80

Source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2010-06-11 21:00)
# Last revision : (2010-09-02 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com

APP=$1
MODE=$2
DLL=$3

cd "$POL_USER_ROOT/ressources"
if [ -e "$POL_USER_ROOT/ressources/app_dll_override.reg" ]; then
        rm -r app_dll_override.reg
fi

echo "REGEDIT4" > app_dll_override.reg
echo "" >> app_dll_override.reg
echo "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\$APP\\DllOverrides]" >> app_dll_override.reg
until [ "$DLL" == "" ]; do
        if [ "$DLL" = "comctl32" ]; then
                rm -rf "$WINEPREFIX/winsxs/manifests/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest"
        fi
        echo "\"$DLL\"=\"$MODE\"" >> app_dll_override.reg
        shift
        DLL="$3"
done

POL_Wine regedit app_dll_override.reg
rm -rf app_dll_override.reg

Contributions

Filters:

Contribute
Member Message
Quentin PÂRIS Monday 21 July 2014 at 17:40
Quentin PÂRIS Anonymous

Information

This update has been approved by the team.

Differences

@@ -27,4 +27,4 @@
 done
 
 POL_Wine regedit app_dll_override.reg
-rm -r app_dll_override.reg
\ No newline at end of file
+rm -rf app_dll_override.reg
\ No newline at end of file

New source code

#!/bin/bash
# PlayOnLinux Function
# Date : (2010-06-11 21:00)
# Last revision : (2010-09-02 21:00)
# Author : GNU_Raziel
# Only For : http://www.playonlinux.com

APP=$1
MODE=$2
DLL=$3

cd "$POL_USER_ROOT/ressources"
if [ -e "$POL_USER_ROOT/ressources/app_dll_override.reg" ]; then
        rm -r app_dll_override.reg
fi

echo "REGEDIT4" > app_dll_override.reg
echo "" >> app_dll_override.reg
echo "[HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\$APP\\DllOverrides]" >> app_dll_override.reg
until [ "$DLL" == "" ]; do
        if [ "$DLL" = "comctl32" ]; then
                rm -rf "$WINEPREFIX/winsxs/manifests/x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.2600.2982_none_deadbeef.manifest"
        fi
        echo "\"$DLL\"=\"$MODE\"" >> app_dll_override.reg
        shift
        DLL="$3"
done

POL_Wine regedit app_dll_override.reg
rm -rf app_dll_override.reg

Replies

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