POL_Install_vcrun2013

Informations

Creator Message
Ronin DUSETTE

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 674990
Wine: System

Feedbacks

Description

An attempt to implement vcrun2013. Based off of winetricks implementation, translated to POL calls. 

Source code

#!/bin/bash
# Date : (2015-01-8 11-30)
# Distribution used to test : Linux Mint 20.1
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.3.4

POL_Debug_Message "Installing vcrun2013..."

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
    Path32Bit="$WINEPREFIX/drive_c/windows/syswow64"
    Path64Bit="$WINEPREFIX/drive_c/windows/system32"
else
    Path32Bit="$WINEPREFIX/drive_c/windows/system32"
fi

POL_Download_Resource "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
mkdir -p $POL_USER_ROOT/tmp/vcrun2013

POL_System_cabextract "$POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe" -d "$POL_USER_ROOT/tmp/vcrun2013/"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a3"

POL_Debug_Message "Copying DLL files..."

cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $Path32Bit/mfc120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $Path32Bit/mfc120u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $Path32Bit/msvcp120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $Path32Bit/msvcr120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $Path32Bit/vcomp120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcamp120_x86 $Path32Bit/vcamp120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vccorlib120_x86 $Path32Bit/vccorlib120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfcm120_x86 $Path32Bit/mfcm120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfcm120u_x86 $Path32Bit/mfcm120u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120chs_x86 $Path32Bit/mfc120chs.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120cht_x86 $Path32Bit/mfc120cht.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120deu_x86 $Path32Bit/mfc120deu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120enu_x86 $Path32Bit/mfc120enu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120esn_x86 $Path32Bit/mfc120esn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120fra_x86 $Path32Bit/mfc120fra.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120ita_x86 $Path32Bit/mfc120ita.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120jpn_x86 $Path32Bit/mfc120jpn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120kor_x86 $Path32Bit/mfc120kor.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120rus_x86 $Path32Bit/mfc120rus.dll

if [ "$POL_ARCH" == "amd64" ]; then

    POL_Download_Resource "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe" "96b61b8e069832e6b809f24ea74567ba" "vcrun2013"
    mkdir -p $POL_USER_ROOT/tmp/vcrun2013/x64

    POL_System_cabextract "$POL_USER_ROOT/ressources/vcrun2013/vcredist_x64.exe" -d "$POL_USER_ROOT/tmp/vcrun2013/x64/"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/x64/a2"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/x64/a3"

    POL_Debug_Message "Copying x64 DLL files..."

    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120_x64 $Path64Bit/mfc120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120u_x64 $Path64Bit/mfc120u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_msvcp120_x64 $Path64Bit/msvcp120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_msvcr120_x64 $Path64Bit/msvcr120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vcomp120_x64 $Path64Bit/vcomp120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vcamp120_x64 $Path64Bit/vcamp120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vccorlib120_x64 $Path64Bit/vccorlib120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfcm120_x64 $Path64Bit/mfcm120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfcm120u_x64 $Path64Bit/mfcm120u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120chs_x64 $Path64Bit/mfc120chs.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120cht_x64 $Path64Bit/mfc120cht.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120deu_x64 $Path64Bit/mfc120deu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120enu_x64 $Path64Bit/mfc120enu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120esn_x64 $Path64Bit/mfc120esn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120fra_x64 $Path64Bit/mfc120fra.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120ita_x64 $Path64Bit/mfc120ita.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120jpn_x64 $Path64Bit/mfc120jpn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120kor_x64 $Path64Bit/mfc120kor.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120rus_x64 $Path64Bit/mfc120rus.dll
fi

POL_Wine_OverrideDLL "native,builtin" "mfc120"
POL_Wine_OverrideDLL "native,builtin" "mfc120u"
POL_Wine_OverrideDLL "native,builtin" "msvcp120"
POL_Wine_OverrideDLL "native,builtin" "msvcr120"
POL_Wine_OverrideDLL "native,builtin" "vcomp120"
POL_Wine_OverrideDLL "native,builtin" "vcamp120"
POL_Wine_OverrideDLL "native,builtin" "vccorlib120"
POL_Wine_OverrideDLL "native,builtin" "mfcm120"
POL_Wine_OverrideDLL "native,builtin" "mfcm120u"

POL_Debug_Message "Cleaning tmp folder..."
rm -rf $POL_USER_ROOT/tmp/vcrun2013

Contributions

Filters:

Contribute
Member Message
Yaotl Friday 4 June 2021 at 22:24
Yaotl Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,39 +1,90 @@
 #!/bin/bash
 # Date : (2015-01-8 11-30)
-# Distribution used to test : Kubuntu 14.04 - 64-bit
+# Distribution used to test : Linux Mint 20.1
 # Author : RoninDusette
 # Licence : GPLv3
-# PlayOnLinux: 4.2.5
+# PlayOnLinux: 4.3.4
 
 POL_Debug_Message "Installing vcrun2013..."
 
 # Checking wine arch
 if [ "$POL_ARCH" == "amd64" ]; then
-        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2013) can not work on a 64-bit installation.')"
-        # POL_SetupWindow_message "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) can not work on a 64-bit installation.')" "$TITLE"
+    Path32Bit="$WINEPREFIX/drive_c/windows/syswow64"
+    Path64Bit="$WINEPREFIX/drive_c/windows/system32"
+else
+    Path32Bit="$WINEPREFIX/drive_c/windows/system32"
 fi
 
-POL_Download_Resource "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
-mkdir $POL_USER_ROOT/tmp/vcrun2013
-cd $POL_USER_ROOT/tmp/vcrun2013
+POL_Download_Resource "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
+mkdir -p $POL_USER_ROOT/tmp/vcrun2013
 
-cp $POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2013/
-POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/vcredist_x86.exe"
+POL_System_cabextract "$POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe" -d "$POL_USER_ROOT/tmp/vcrun2013/"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a2"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a3"
 
 POL_Debug_Message "Copying DLL files..."
 
-cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $WINEPREFIX/drive_c/windows/system32/mfc120.dll
-cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $WINEPREFIX/drive_c/windows/system32/mfc120u.dll
-cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $WINEPREFIX/drive_c/windows/system32/msvcp120.dll
-cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $WINEPREFIX/drive_c/windows/system32/msvcr120.dll
-cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $WINEPREFIX/drive_c/windows/system32/vcomp120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $Path32Bit/mfc120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $Path32Bit/mfc120u.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $Path32Bit/msvcp120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $Path32Bit/msvcr120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $Path32Bit/vcomp120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcamp120_x86 $Path32Bit/vcamp120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vccorlib120_x86 $Path32Bit/vccorlib120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfcm120_x86 $Path32Bit/mfcm120.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfcm120u_x86 $Path32Bit/mfcm120u.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120chs_x86 $Path32Bit/mfc120chs.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120cht_x86 $Path32Bit/mfc120cht.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120deu_x86 $Path32Bit/mfc120deu.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120enu_x86 $Path32Bit/mfc120enu.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120esn_x86 $Path32Bit/mfc120esn.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120fra_x86 $Path32Bit/mfc120fra.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120ita_x86 $Path32Bit/mfc120ita.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120jpn_x86 $Path32Bit/mfc120jpn.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120kor_x86 $Path32Bit/mfc120kor.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120rus_x86 $Path32Bit/mfc120rus.dll
 
-POL_Wine_OverrideDLL "native,builtin" "atl120"
+if [ "$POL_ARCH" == "amd64" ]; then
+
+    POL_Download_Resource "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe" "96b61b8e069832e6b809f24ea74567ba" "vcrun2013"
+    mkdir -p $POL_USER_ROOT/tmp/vcrun2013/x64
+
+    POL_System_cabextract "$POL_USER_ROOT/ressources/vcrun2013/vcredist_x64.exe" -d "$POL_USER_ROOT/tmp/vcrun2013/x64/"
+    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/x64/a2"
+    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/x64/a3"
+
+    POL_Debug_Message "Copying x64 DLL files..."
+
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120_x64 $Path64Bit/mfc120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120u_x64 $Path64Bit/mfc120u.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_msvcp120_x64 $Path64Bit/msvcp120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_msvcr120_x64 $Path64Bit/msvcr120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vcomp120_x64 $Path64Bit/vcomp120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vcamp120_x64 $Path64Bit/vcamp120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vccorlib120_x64 $Path64Bit/vccorlib120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfcm120_x64 $Path64Bit/mfcm120.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfcm120u_x64 $Path64Bit/mfcm120u.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120chs_x64 $Path64Bit/mfc120chs.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120cht_x64 $Path64Bit/mfc120cht.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120deu_x64 $Path64Bit/mfc120deu.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120enu_x64 $Path64Bit/mfc120enu.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120esn_x64 $Path64Bit/mfc120esn.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120fra_x64 $Path64Bit/mfc120fra.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120ita_x64 $Path64Bit/mfc120ita.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120jpn_x64 $Path64Bit/mfc120jpn.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120kor_x64 $Path64Bit/mfc120kor.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120rus_x64 $Path64Bit/mfc120rus.dll
+fi
+
+POL_Wine_OverrideDLL "native,builtin" "mfc120"
+POL_Wine_OverrideDLL "native,builtin" "mfc120u"
 POL_Wine_OverrideDLL "native,builtin" "msvcp120"
 POL_Wine_OverrideDLL "native,builtin" "msvcr120"
 POL_Wine_OverrideDLL "native,builtin" "vcomp120"
+POL_Wine_OverrideDLL "native,builtin" "vcamp120"
+POL_Wine_OverrideDLL "native,builtin" "vccorlib120"
+POL_Wine_OverrideDLL "native,builtin" "mfcm120"
+POL_Wine_OverrideDLL "native,builtin" "mfcm120u"
 
 POL_Debug_Message "Cleaning tmp folder..."
 rm -rf $POL_USER_ROOT/tmp/vcrun2013
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-01-8 11-30)
# Distribution used to test : Linux Mint 20.1
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.3.4

POL_Debug_Message "Installing vcrun2013..."

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
    Path32Bit="$WINEPREFIX/drive_c/windows/syswow64"
    Path64Bit="$WINEPREFIX/drive_c/windows/system32"
else
    Path32Bit="$WINEPREFIX/drive_c/windows/system32"
fi

POL_Download_Resource "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
mkdir -p $POL_USER_ROOT/tmp/vcrun2013

POL_System_cabextract "$POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe" -d "$POL_USER_ROOT/tmp/vcrun2013/"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a3"

POL_Debug_Message "Copying DLL files..."

cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $Path32Bit/mfc120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $Path32Bit/mfc120u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $Path32Bit/msvcp120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $Path32Bit/msvcr120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $Path32Bit/vcomp120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcamp120_x86 $Path32Bit/vcamp120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vccorlib120_x86 $Path32Bit/vccorlib120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfcm120_x86 $Path32Bit/mfcm120.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfcm120u_x86 $Path32Bit/mfcm120u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120chs_x86 $Path32Bit/mfc120chs.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120cht_x86 $Path32Bit/mfc120cht.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120deu_x86 $Path32Bit/mfc120deu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120enu_x86 $Path32Bit/mfc120enu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120esn_x86 $Path32Bit/mfc120esn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120fra_x86 $Path32Bit/mfc120fra.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120ita_x86 $Path32Bit/mfc120ita.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120jpn_x86 $Path32Bit/mfc120jpn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120kor_x86 $Path32Bit/mfc120kor.dll
cp -f $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120rus_x86 $Path32Bit/mfc120rus.dll

if [ "$POL_ARCH" == "amd64" ]; then

    POL_Download_Resource "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe" "96b61b8e069832e6b809f24ea74567ba" "vcrun2013"
    mkdir -p $POL_USER_ROOT/tmp/vcrun2013/x64

    POL_System_cabextract "$POL_USER_ROOT/ressources/vcrun2013/vcredist_x64.exe" -d "$POL_USER_ROOT/tmp/vcrun2013/x64/"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/x64/a2"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/x64/a3"

    POL_Debug_Message "Copying x64 DLL files..."

    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120_x64 $Path64Bit/mfc120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120u_x64 $Path64Bit/mfc120u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_msvcp120_x64 $Path64Bit/msvcp120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_msvcr120_x64 $Path64Bit/msvcr120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vcomp120_x64 $Path64Bit/vcomp120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vcamp120_x64 $Path64Bit/vcamp120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_vccorlib120_x64 $Path64Bit/vccorlib120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfcm120_x64 $Path64Bit/mfcm120.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfcm120u_x64 $Path64Bit/mfcm120u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120chs_x64 $Path64Bit/mfc120chs.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120cht_x64 $Path64Bit/mfc120cht.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120deu_x64 $Path64Bit/mfc120deu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120enu_x64 $Path64Bit/mfc120enu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120esn_x64 $Path64Bit/mfc120esn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120fra_x64 $Path64Bit/mfc120fra.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120ita_x64 $Path64Bit/mfc120ita.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120jpn_x64 $Path64Bit/mfc120jpn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120kor_x64 $Path64Bit/mfc120kor.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2013/x64/F_CENTRAL_mfc120rus_x64 $Path64Bit/mfc120rus.dll
fi

POL_Wine_OverrideDLL "native,builtin" "mfc120"
POL_Wine_OverrideDLL "native,builtin" "mfc120u"
POL_Wine_OverrideDLL "native,builtin" "msvcp120"
POL_Wine_OverrideDLL "native,builtin" "msvcr120"
POL_Wine_OverrideDLL "native,builtin" "vcomp120"
POL_Wine_OverrideDLL "native,builtin" "vcamp120"
POL_Wine_OverrideDLL "native,builtin" "vccorlib120"
POL_Wine_OverrideDLL "native,builtin" "mfcm120"
POL_Wine_OverrideDLL "native,builtin" "mfcm120u"

POL_Debug_Message "Cleaning tmp folder..."
rm -rf $POL_USER_ROOT/tmp/vcrun2013

Replies

Saturday 5 June 2021 at 0:15
Script approved.
Dadu042 Thursday 1 October 2020 at 9:37
Dadu042

Warning

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

Message

Incompatible with 64bits prefixes.

Differences

@@ -7,6 +7,12 @@
 
 POL_Debug_Message "Installing vcrun2013..."
 
+# Checking wine arch
+if [ "$POL_ARCH" == "amd64" ]; then
+        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2013) can not work on a 64-bit installation.')"
+        # POL_SetupWindow_message "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) can not work on a 64-bit installation.')" "$TITLE"
+fi
+
 POL_Download_Resource "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
 mkdir $POL_USER_ROOT/tmp/vcrun2013
 cd $POL_USER_ROOT/tmp/vcrun2013

New source code

#!/bin/bash
# Date : (2015-01-8 11-30)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.5

POL_Debug_Message "Installing vcrun2013..."

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2013) can not work on a 64-bit installation.')"
        # POL_SetupWindow_message "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) can not work on a 64-bit installation.')" "$TITLE"
fi

POL_Download_Resource "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
mkdir $POL_USER_ROOT/tmp/vcrun2013
cd $POL_USER_ROOT/tmp/vcrun2013

cp $POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2013/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $WINEPREFIX/drive_c/windows/system32/mfc120.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $WINEPREFIX/drive_c/windows/system32/mfc120u.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $WINEPREFIX/drive_c/windows/system32/msvcp120.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $WINEPREFIX/drive_c/windows/system32/msvcr120.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $WINEPREFIX/drive_c/windows/system32/vcomp120.dll

POL_Wine_OverrideDLL "native,builtin" "atl120"
POL_Wine_OverrideDLL "native,builtin" "msvcp120"
POL_Wine_OverrideDLL "native,builtin" "msvcr120"
POL_Wine_OverrideDLL "native,builtin" "vcomp120"

POL_Debug_Message "Cleaning tmp folder..."
rm -rf $POL_USER_ROOT/tmp/vcrun2013

Replies

Ronin DUSETTE Thursday 8 January 2015 at 20:33
Ronin DUSETTE

Warning

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

Message

Initial commit

Differences

@@ -0,0 +1,33 @@
+#!/bin/bash
+# Date : (2015-01-8 11-30)
+# Distribution used to test : Kubuntu 14.04 - 64-bit
+# Author : RoninDusette
+# Licence : GPLv3
+# PlayOnLinux: 4.2.5
+
+POL_Debug_Message "Installing vcrun2013..."
+
+POL_Download_Resource "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
+mkdir $POL_USER_ROOT/tmp/vcrun2013
+cd $POL_USER_ROOT/tmp/vcrun2013
+
+cp $POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2013/
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/vcredist_x86.exe"
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a2"
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a3"
+
+POL_Debug_Message "Copying DLL files..."
+
+cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $WINEPREFIX/drive_c/windows/system32/mfc120.dll
+cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $WINEPREFIX/drive_c/windows/system32/mfc120u.dll
+cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $WINEPREFIX/drive_c/windows/system32/msvcp120.dll
+cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $WINEPREFIX/drive_c/windows/system32/msvcr120.dll
+cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $WINEPREFIX/drive_c/windows/system32/vcomp120.dll
+
+POL_Wine_OverrideDLL "native,builtin" "atl120"
+POL_Wine_OverrideDLL "native,builtin" "msvcp120"
+POL_Wine_OverrideDLL "native,builtin" "msvcr120"
+POL_Wine_OverrideDLL "native,builtin" "vcomp120"
+
+POL_Debug_Message "Cleaning tmp folder..."
+rm -rf $POL_USER_ROOT/tmp/vcrun2013
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-01-8 11-30)
# Distribution used to test : Kubuntu 14.04 - 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.5

POL_Debug_Message "Installing vcrun2013..."

POL_Download_Resource "http://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe" "0fc525b6b7b96a87523daa7a0013c69d" "vcrun2013"
mkdir $POL_USER_ROOT/tmp/vcrun2013
cd $POL_USER_ROOT/tmp/vcrun2013

cp $POL_USER_ROOT/ressources/vcrun2013/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2013/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2013/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120_x86 $WINEPREFIX/drive_c/windows/system32/mfc120.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_mfc120u_x86 $WINEPREFIX/drive_c/windows/system32/mfc120u.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcp120_x86 $WINEPREFIX/drive_c/windows/system32/msvcp120.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_msvcr120_x86 $WINEPREFIX/drive_c/windows/system32/msvcr120.dll
cp $POL_USER_ROOT/tmp/vcrun2013/F_CENTRAL_vcomp120_x86 $WINEPREFIX/drive_c/windows/system32/vcomp120.dll

POL_Wine_OverrideDLL "native,builtin" "atl120"
POL_Wine_OverrideDLL "native,builtin" "msvcp120"
POL_Wine_OverrideDLL "native,builtin" "msvcr120"
POL_Wine_OverrideDLL "native,builtin" "vcomp120"

POL_Debug_Message "Cleaning tmp folder..."
rm -rf $POL_USER_ROOT/tmp/vcrun2013

Replies

Anonymous
Thursday 8 January 2015 at 20:59
The Sims 4 install still generates error code 5. Either this script dosn't work yet or more likly the installer is doing something unexpected. Perhaps some dll overrides need to be changed?
Thursday 8 January 2015 at 21:04
The DLL overrides are what they should be, but what I think is happening is there is no registry entry that tells The Sims 4 installer that vcrun2013 is already installed, so it still tries to do it. I am trying to figure that out now. This is based off of the winetricks implementation, so if they are using those DLLs, I am on the right track, but I still need to figure out if a registry entry is needed to get installers to skip the vcrun2013 payload during their install. Rest assured, though. I am trying my best to get a solution for you guys. :)
Thursday 8 January 2015 at 21:09
Ok, so I am correct. vcrun2012 and 2013 both need a reg key that lets programs know that it is 'installed'. Both of them install a GANG of reg keys, so it may take me some time to figure out what exactly I need to put in there. I will update this when I have a solution.
Anonymous
Thursday 8 January 2015 at 21:16
I figured it might take a while to figure out. I figure waiting a while to find a legitimate way to run the official version of the game is much better than using that method the other guy uses that will not be discussed here. I suspect you are on the right track with your registry theory. Judging from the installers log.nI wish I knew more about how the wine registry works so I could help try to figer this out. Maybe that game that you and booman are trying to get working might benefit from this.
Anonymous
Thursday 8 January 2015 at 21:20
I must have pressed the letter n when i meant to press space bar.
Thursday 8 January 2015 at 21:27
That game (drakensang) needs work directly from Wine. I mean, even if the native installer does not work, that is fine; there are a LOT of POL and Winetricks installers that kind of cookie-cut the installers, extract the DLLs, register them, and add a few registry keys, and that is it.

Also, with the exception of the Wine-specific registry keys, the registry works just like it does in WIndows (a hard-requirement for doing what Wine does. Windows programs inherently need a registry for the most part), so if you we just know which registry key(s) the vcrun installer uses, then we should be able to just pop them into the registry via the script. I just have to find the right one(s).
Anonymous
Thursday 8 January 2015 at 21:34
I am looking at the wine registry now and woudering where are the vcrun 2013 registry keys. Its almost like trying to find a neeedle in a hay stack.
Thursday 8 January 2015 at 21:35
They won't be in there. You need to look in a Windows install of vcrun2013, as that will be a successful install, and we will know those registry keys work.
Thursday 8 January 2015 at 21:36
If the vcrun2013 install fails to install, it won't write registry keys. On Wine or Windows. Since it works on Windows, we need to check a real windows install's registry entries. ;)
Anonymous
Friday 9 January 2015 at 1:02
Will this help?
Anonymous
Friday 9 January 2015 at 1:03
Oops hit enter to quick. https://appdb.winehq.org/objectManager.php?sClass=version&iId=31195
Friday 9 January 2015 at 1:08
Kind of. Half of those responses involve a crack, but if wine-compholio has patches that let it install, then I am sure that we can implement those patches here. Problem is, wine-compholio is made of a LOT of patches, so we need to know exactly which patches grant the ability to install vcrun2012/2013 naturally (by that I mean by the .exe file).

If you can find the specific Wine patches & Wine version that will allow the installation to happen, I will set up the build for it.
Anonymous
Friday 9 January 2015 at 1:25
I am going to Windows so I can get my The Sims 4 fix. LoL. I will look at the Windows registry later.
Friday 9 January 2015 at 1:37
For sure. Again, if you can find the specific patches that make vcrun2013 install so that this game works, let me know, and I will get it built so that we can try it. :)
Anonymous
Friday 9 January 2015 at 8:49
Its confusing trying to search the windows registry. Microsoft dosn't make this easy. Then again when did microsoft ever make sense?\
Friday 9 January 2015 at 18:43
Lol. Yeah. You may want to check MSDN (Microsoft Developers Network) and see if they have any technical or whitepaper documents about where vcrun stores it's registry entries. It is confusing, but I have to imagine all of the vcruntimes pop their reg keys somewhat in the same spot.
Anonymous
Friday 9 January 2015 at 21:32
I found something last night. I can't remember the key it was under. Rats now I will have to go back to windows to find it again.

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