I imagine it like this(The example of winhttp):
#POL_Download_Win7SP1 (Alternatively, that would be alright: POL_Win7SP1_Download) https://www.playonlinux.com/en/app-3692-POL_Download_Win7SP1.html
#!/bin/bash
#...
POL_Call POL_Download_Win7SP1
if [ "$POL_ARCH" = "amd64" ]; then
cabextract -F 'amd64_microsoft.windows.winhttp_31bf3856ad364e35_5.1.7601.17514_none_bac5319939f7951a/winhttp.dll' $POL_USER_ROOT/ressources/windows6.1-KB976932-X64.exe -d $POL_USER_ROOT/tmp
cabextract -F 'wow64_microsoft.windows.winhttp_31bf3856ad364e35_5.1.7601.17514_none_c519dbeb6e585715/winhttp.dll' $POL_USER_ROOT/ressources/windows6.1-KB976932-X64.exe -d $POL_USER_ROOT/tmp
cp $POL_USER_ROOT/tmp/amd64_microsoft.windows.winhttp_31bf3856ad364e35_5.1.7601.17514_none_bac5319939f7951a/winhttp.dll $WINEPREFIX/drive_c/windows/system32
cp $POL_USER_ROOT/tmp/wow64_microsoft.windows.winhttp_31bf3856ad364e35_5.1.7601.17514_none_c519dbeb6e585715/winhttp.dll $WINEPREFIX/drive_c/windows/syswow64
else
cabextract "$POL_USER_ROOT/ressources/windows6.1-KB976932-X64.exe" -F wow64_microsoft.windows.winhttp_31bf3856ad364e35_5.1.7601.17514_none_c519dbeb6e585715/winhttp.dll -d $POL_USER_ROOT/tmp
cp $POL_USER_ROOT/tmp/wow64_microsoft.windows.winhttp_31bf3856ad364e35_5.1.7601.17514_none_c519dbeb6e585715/winhttp.dll $WINEPREFIX/drive_c/windows/system32
fi
# Overriding DLL
POL_Wine_OverrideDLL "native, builtin" "winhttp"
I'm ready for change suggestions!
Edited by Yaotl