POL_Install_vcrun2012

Informations

Creator Message
Ronin DUSETTE

Warning

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

Informations

Platforms:
Downloads: 616009
Wine: System

Feedbacks

Description

Hopefully grants compatibility to apps requiring vcrun2012. Based off of winetricks function, translated to POL calls. 

Source code

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

POL_Debug_Message "Installing vcrun2012..."

# 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/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
mkdir -p $POL_USER_ROOT/tmp/vcrun2012
cd $POL_USER_ROOT/tmp/vcrun2012

cp -f $POL_USER_ROOT/ressources/vcrun2012/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2012/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"

POL_Debug_Message "Copying DLL files..."

cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $Path32Bit/atl110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $Path32Bit/mfc110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $Path32Bit/mfc110u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $Path32Bit/msvcp110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $Path32Bit/msvcr110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $Path32Bit/vcomp110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vccorlib110_x86 $Path32Bit/vccorlib110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfcm110_x86 $Path32Bit/mfcm110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfcm110u_x86 $Path32Bit/mfcm110u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcamp110_x86 $Path32Bit/vcamp110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110chs_x86 $Path32Bit/mfc110chs.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110cht_x86 $Path32Bit/mfc110cht.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110deu_x86 $Path32Bit/mfc110deu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110enu_x86 $Path32Bit/mfc110enu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110esn_x86 $Path32Bit/mfc110esn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110fra_x86 $Path32Bit/mfc110fra.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110ita_x86 $Path32Bit/mfc110ita.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110jpn_x86 $Path32Bit/mfc110jpn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110kor_x86 $Path32Bit/mfc110kor.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110rus_x86 $Path32Bit/mfc110rus.dll

if [ "$POL_ARCH" = "amd64" ]; then
    POL_Download_Resource "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe" "3c03562b5af9ed347614053d459d7778" "vcrun2012"
    mkdir -p $POL_USER_ROOT/tmp/vcrun2012/x64
    cd $POL_USER_ROOT/tmp/vcrun2012/x64

    cp -f $POL_USER_ROOT/ressources/vcrun2012/vcredist_x64.exe $POL_USER_ROOT/tmp/vcrun2012/x64/
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/vcredist_x64.exe"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/a2"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/a3"

    POL_Debug_Message "Copying x64 DLL files..."

    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_atl110_x64 $Path64Bit/atl110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110_x64 $Path64Bit/mfc110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110u_x64 $Path64Bit/mfc110u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_msvcp110_x64 $Path64Bit/msvcp110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_msvcr110_x64 $Path64Bit/msvcr110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vcomp110_x64 $Path64Bit/vcomp110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vccorlib110_x64 $Path64Bit/vccorlib110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfcm110_x64 $Path64Bit/mfcm110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfcm110u_x64 $Path64Bit/mfcm110u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vcamp110_x64 $Path64Bit/vcamp110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110chs_x64 $Path64Bit/mfc110chs.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110cht_x64 $Path64Bit/mfc110cht.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110deu_x64 $Path64Bit/mfc110deu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110enu_x64 $Path64Bit/mfc110enu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110esn_x64 $Path64Bit/mfc110esn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110fra_x64 $Path64Bit/mfc110fra.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110ita_x64 $Path64Bit/mfc110ita.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110jpn_x64 $Path64Bit/mfc110jpn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110kor_x64 $Path64Bit/mfc110kor.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110rus_x64 $Path64Bit/mfc110rus.dll

fi

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "mfc110"
POL_Wine_OverrideDLL "native,builtin" "mfc110u"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"
POL_Wine_OverrideDLL "native,builtin" "vccorlib110"
POL_Wine_OverrideDLL "native,builtin" "mfcm110"
POL_Wine_OverrideDLL "native,builtin" "mfcm110u"
POL_Wine_OverrideDLL "native,builtin" "vcamp110"


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

Contributions

Filters:

Contribute
Member Message
Yaotl Wednesday 2 June 2021 at 14:33
Yaotl Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,39 +1,98 @@
 #!/bin/bash
 # Date : (2015-01-6 22-00)
-# 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 vcrun2012..."
 
 # Checking wine arch
-if [ "$POL_ARCH" == "amd64" ]; then
-        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2012) can not work on a 64-bit installation.')"
+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 "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
-mkdir $POL_USER_ROOT/tmp/vcrun2012
+POL_Download_Resource "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
+mkdir -p $POL_USER_ROOT/tmp/vcrun2012
 cd $POL_USER_ROOT/tmp/vcrun2012
 
-cp $POL_USER_ROOT/ressources/vcrun2012/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2012/
+cp -f $POL_USER_ROOT/ressources/vcrun2012/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2012/
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"
 
 POL_Debug_Message "Copying DLL files..."
 
-cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
-cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
-cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
-cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
-cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
-cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $Path32Bit/atl110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $Path32Bit/mfc110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $Path32Bit/mfc110u.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $Path32Bit/msvcp110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $Path32Bit/msvcr110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $Path32Bit/vcomp110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vccorlib110_x86 $Path32Bit/vccorlib110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfcm110_x86 $Path32Bit/mfcm110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfcm110u_x86 $Path32Bit/mfcm110u.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcamp110_x86 $Path32Bit/vcamp110.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110chs_x86 $Path32Bit/mfc110chs.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110cht_x86 $Path32Bit/mfc110cht.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110deu_x86 $Path32Bit/mfc110deu.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110enu_x86 $Path32Bit/mfc110enu.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110esn_x86 $Path32Bit/mfc110esn.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110fra_x86 $Path32Bit/mfc110fra.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110ita_x86 $Path32Bit/mfc110ita.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110jpn_x86 $Path32Bit/mfc110jpn.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110kor_x86 $Path32Bit/mfc110kor.dll
+cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110rus_x86 $Path32Bit/mfc110rus.dll
+
+if [ "$POL_ARCH" = "amd64" ]; then
+    POL_Download_Resource "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe" "3c03562b5af9ed347614053d459d7778" "vcrun2012"
+    mkdir -p $POL_USER_ROOT/tmp/vcrun2012/x64
+    cd $POL_USER_ROOT/tmp/vcrun2012/x64
+
+    cp -f $POL_USER_ROOT/ressources/vcrun2012/vcredist_x64.exe $POL_USER_ROOT/tmp/vcrun2012/x64/
+    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/vcredist_x64.exe"
+    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/a2"
+    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/a3"
+
+    POL_Debug_Message "Copying x64 DLL files..."
+
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_atl110_x64 $Path64Bit/atl110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110_x64 $Path64Bit/mfc110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110u_x64 $Path64Bit/mfc110u.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_msvcp110_x64 $Path64Bit/msvcp110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_msvcr110_x64 $Path64Bit/msvcr110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vcomp110_x64 $Path64Bit/vcomp110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vccorlib110_x64 $Path64Bit/vccorlib110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfcm110_x64 $Path64Bit/mfcm110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfcm110u_x64 $Path64Bit/mfcm110u.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vcamp110_x64 $Path64Bit/vcamp110.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110chs_x64 $Path64Bit/mfc110chs.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110cht_x64 $Path64Bit/mfc110cht.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110deu_x64 $Path64Bit/mfc110deu.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110enu_x64 $Path64Bit/mfc110enu.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110esn_x64 $Path64Bit/mfc110esn.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110fra_x64 $Path64Bit/mfc110fra.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110ita_x64 $Path64Bit/mfc110ita.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110jpn_x64 $Path64Bit/mfc110jpn.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110kor_x64 $Path64Bit/mfc110kor.dll
+    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110rus_x64 $Path64Bit/mfc110rus.dll
+
+fi
 
 POL_Wine_OverrideDLL "native,builtin" "atl110"
+POL_Wine_OverrideDLL "native,builtin" "mfc110"
+POL_Wine_OverrideDLL "native,builtin" "mfc110u"
 POL_Wine_OverrideDLL "native,builtin" "msvcp110"
 POL_Wine_OverrideDLL "native,builtin" "msvcr110"
 POL_Wine_OverrideDLL "native,builtin" "vcomp110"
+POL_Wine_OverrideDLL "native,builtin" "vccorlib110"
+POL_Wine_OverrideDLL "native,builtin" "mfcm110"
+POL_Wine_OverrideDLL "native,builtin" "mfcm110u"
+POL_Wine_OverrideDLL "native,builtin" "vcamp110"
+
 
 POL_Debug_Message "Cleaning tmp folder..."
 rm -rf $POL_USER_ROOT/tmp/vcrun2012
\ No newline at end of file

New source code

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

POL_Debug_Message "Installing vcrun2012..."

# 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/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
mkdir -p $POL_USER_ROOT/tmp/vcrun2012
cd $POL_USER_ROOT/tmp/vcrun2012

cp -f $POL_USER_ROOT/ressources/vcrun2012/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2012/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"

POL_Debug_Message "Copying DLL files..."

cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $Path32Bit/atl110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $Path32Bit/mfc110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $Path32Bit/mfc110u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $Path32Bit/msvcp110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $Path32Bit/msvcr110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $Path32Bit/vcomp110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vccorlib110_x86 $Path32Bit/vccorlib110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfcm110_x86 $Path32Bit/mfcm110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfcm110u_x86 $Path32Bit/mfcm110u.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcamp110_x86 $Path32Bit/vcamp110.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110chs_x86 $Path32Bit/mfc110chs.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110cht_x86 $Path32Bit/mfc110cht.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110deu_x86 $Path32Bit/mfc110deu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110enu_x86 $Path32Bit/mfc110enu.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110esn_x86 $Path32Bit/mfc110esn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110fra_x86 $Path32Bit/mfc110fra.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110ita_x86 $Path32Bit/mfc110ita.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110jpn_x86 $Path32Bit/mfc110jpn.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110kor_x86 $Path32Bit/mfc110kor.dll
cp -f $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110rus_x86 $Path32Bit/mfc110rus.dll

if [ "$POL_ARCH" = "amd64" ]; then
    POL_Download_Resource "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe" "3c03562b5af9ed347614053d459d7778" "vcrun2012"
    mkdir -p $POL_USER_ROOT/tmp/vcrun2012/x64
    cd $POL_USER_ROOT/tmp/vcrun2012/x64

    cp -f $POL_USER_ROOT/ressources/vcrun2012/vcredist_x64.exe $POL_USER_ROOT/tmp/vcrun2012/x64/
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/vcredist_x64.exe"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/a2"
    POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/x64/a3"

    POL_Debug_Message "Copying x64 DLL files..."

    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_atl110_x64 $Path64Bit/atl110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110_x64 $Path64Bit/mfc110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110u_x64 $Path64Bit/mfc110u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_msvcp110_x64 $Path64Bit/msvcp110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_msvcr110_x64 $Path64Bit/msvcr110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vcomp110_x64 $Path64Bit/vcomp110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vccorlib110_x64 $Path64Bit/vccorlib110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfcm110_x64 $Path64Bit/mfcm110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfcm110u_x64 $Path64Bit/mfcm110u.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_vcamp110_x64 $Path64Bit/vcamp110.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110chs_x64 $Path64Bit/mfc110chs.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110cht_x64 $Path64Bit/mfc110cht.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110deu_x64 $Path64Bit/mfc110deu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110enu_x64 $Path64Bit/mfc110enu.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110esn_x64 $Path64Bit/mfc110esn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110fra_x64 $Path64Bit/mfc110fra.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110ita_x64 $Path64Bit/mfc110ita.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110jpn_x64 $Path64Bit/mfc110jpn.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110kor_x64 $Path64Bit/mfc110kor.dll
    cp -f $POL_USER_ROOT/tmp/vcrun2012/x64/F_CENTRAL_mfc110rus_x64 $Path64Bit/mfc110rus.dll

fi

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "mfc110"
POL_Wine_OverrideDLL "native,builtin" "mfc110u"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"
POL_Wine_OverrideDLL "native,builtin" "vccorlib110"
POL_Wine_OverrideDLL "native,builtin" "mfcm110"
POL_Wine_OverrideDLL "native,builtin" "mfcm110u"
POL_Wine_OverrideDLL "native,builtin" "vcamp110"


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

Replies

Wednesday 2 June 2021 at 23:37
Script approved.
Dadu042 Thursday 1 October 2020 at 9:38
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,11 @@
 
 POL_Debug_Message "Installing vcrun2012..."
 
+# Checking wine arch
+if [ "$POL_ARCH" == "amd64" ]; then
+        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2012) can not work on a 64-bit installation.')"
+fi
+
 POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
 mkdir $POL_USER_ROOT/tmp/vcrun2012
 cd $POL_USER_ROOT/tmp/vcrun2012

New source code

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

POL_Debug_Message "Installing vcrun2012..."

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

POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
mkdir $POL_USER_ROOT/tmp/vcrun2012
cd $POL_USER_ROOT/tmp/vcrun2012

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

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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

Replies

Ronin DUSETTE Thursday 8 January 2015 at 3:51
Ronin DUSETTE

Warning

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

Message

Removed original line with other MD5, as it did not work. 

Differences

@@ -11,7 +11,7 @@
 mkdir $POL_USER_ROOT/tmp/vcrun2012
 cd $POL_USER_ROOT/tmp/vcrun2012
 
-cp $POL_USER_ROOT/ressources/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2012/
+cp $POL_USER_ROOT/ressources/vcrun2012/vcredist_x86.exe $POL_USER_ROOT/tmp/vcrun2012/
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"

New source code

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

POL_Debug_Message "Installing vcrun2012..."

POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e" "vcrun2012"
mkdir $POL_USER_ROOT/tmp/vcrun2012
cd $POL_USER_ROOT/tmp/vcrun2012

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

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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

Replies

Thursday 8 January 2015 at 7:26
Ok. It works now. Added 3rd positional argument to "POL_Download_Resource" call.
Thursday 8 January 2015 at 7:30
Also corrected script to reflect ressources download folder. Tis all good.

Edited by RoninDusette

Ronin DUSETTE Thursday 8 January 2015 at 1:17
Ronin DUSETTE

Warning

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

Message

Changing from wget to POL_Download_Resource

Differences

@@ -7,8 +7,8 @@
 
 POL_Debug_Message "Installing vcrun2012..."
 
-POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
-
+#POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
+POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e"
 mkdir $POL_USER_ROOT/tmp/vcrun2012
 cd $POL_USER_ROOT/tmp/vcrun2012
 

New source code

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

POL_Debug_Message "Installing vcrun2012..."

#POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
POL_Download_Resource "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "7f52a19ecaf7db3c163dd164be3e592e"
mkdir $POL_USER_ROOT/tmp/vcrun2012
cd $POL_USER_ROOT/tmp/vcrun2012

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

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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

Replies

Thursday 8 January 2015 at 1:27
When I switch to download resource, the MD5 that is used (which is the correct one) does not match. So, using POL_System_wget works right, and the MD5 in the script validates. However, switching to POL_Download_Resource, it gives a completely different MD5, and it fails. Not really sure why. Likely because all of the vcrun downloads have the same name, it would conflict with a previously downloaded resource of the same name? Not really sure if that would do it. Working on it.
Thursday 8 January 2015 at 1:32
Changed the MD5 to the different one that comes from wget to the new one with POL_Download_Resource. Not really sure why it would be such a radically different MD5, but it is still grabbing a file and working like before, so yeah. Leaving it as-is.
Thursday 8 January 2015 at 4:41
There will be a conflict saving it to ressources. If you install there is a "vcredist_x86.exe" in there, it keeps saying that the local MD5 does not match, and will not replace it. Unless I am missing something, but I have looked at other scripts and I don't see what I would be missing. So for now, I am leaving it to download into a the tmp folder, so that when I get the vcrun2013 script up, it will not conflict with the previously downloaded vcredist_x86.exe's in the ressources folder.

Edited by RoninDusette

Ronin DUSETTE Wednesday 7 January 2015 at 23:45
Ronin DUSETTE

Warning

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

Message

Removing unneeded quotes on BASH commands

Differences

@@ -7,8 +7,8 @@
 
 POL_Debug_Message "Installing vcrun2012..."
 
-mkdir "$POL_USER_ROOT/tmp/vcrun2012"
-cd "$POL_USER_ROOT/tmp/vcrun2012"
+mkdir $POL_USER_ROOT/tmp/vcrun2012
+cd $POL_USER_ROOT/tmp/vcrun2012
 
 POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"

New source code

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

POL_Debug_Message "Installing vcrun2012..."

mkdir $POL_USER_ROOT/tmp/vcrun2012
cd $POL_USER_ROOT/tmp/vcrun2012

POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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

Replies

Ronin DUSETTE Wednesday 7 January 2015 at 23:40
Ronin DUSETTE

Warning

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

Message

Switching download to custom folder, and cleaning up that folder only, instead of removing the whole tmp folder. Will also implement POL_Download_Resource when I have the chance. 

Differences

@@ -7,21 +7,22 @@
 
 POL_Debug_Message "Installing vcrun2012..."
 
-cd "$POL_USER_ROOT/tmp"
+mkdir "$POL_USER_ROOT/tmp/vcrun2012"
+cd "$POL_USER_ROOT/tmp/vcrun2012"
 
 POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
-POL_System_cabextract "$POL_USER_ROOT/tmp/vcredist_x86.exe"
-POL_System_cabextract "$POL_USER_ROOT/tmp/a2"
-POL_System_cabextract "$POL_USER_ROOT/tmp/a3"
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"
 
 POL_Debug_Message "Copying DLL files..."
 
-cp $POL_USER_ROOT/tmp/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
-cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
-cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
-cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
-cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
-cp $POL_USER_ROOT/tmp/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll
+cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
+cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
+cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
+cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
+cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
+cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll
 
 POL_Wine_OverrideDLL "native,builtin" "atl110"
 POL_Wine_OverrideDLL "native,builtin" "msvcp110"
@@ -29,4 +30,4 @@
 POL_Wine_OverrideDLL "native,builtin" "vcomp110"
 
 POL_Debug_Message "Cleaning tmp folder..."
-rm -rf $POL_USER_ROOT/tmp/*
\ No newline at end of file
+rm -rf $POL_USER_ROOT/tmp/vcrun2012
\ No newline at end of file

New source code

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

POL_Debug_Message "Installing vcrun2012..."

mkdir "$POL_USER_ROOT/tmp/vcrun2012"
cd "$POL_USER_ROOT/tmp/vcrun2012"

POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2012/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/vcrun2012/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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

Replies

Ronin DUSETTE Wednesday 7 January 2015 at 7:58
Ronin DUSETTE

Warning

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

Differences

@@ -29,4 +29,4 @@
 POL_Wine_OverrideDLL "native,builtin" "vcomp110"
 
 POL_Debug_Message "Cleaning tmp folder..."
-rm $POL_USER_ROOT/tmp/*
\ No newline at end of file
+rm -rf $POL_USER_ROOT/tmp/*
\ No newline at end of file

New source code

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

POL_Debug_Message "Installing vcrun2012..."

cd "$POL_USER_ROOT/tmp"

POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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

Replies

Wednesday 7 January 2015 at 23:35
I don't think clearing $POL_USER_ROOT/tmp/ is a good idea, used inside a script it'll remove any other temporary file created by the calling script.
Better create a subdirectory in there, and remove it when done.
Also, to downloading reusable files use POL_Download_Resource, so they get cached for the next time(s)
Wednesday 7 January 2015 at 23:37
Ok. I will make those changes. POL_Download_Resource has the same positional args as POL_System_wget, right?
Ronin DUSETTE Wednesday 7 January 2015 at 7:55
Ronin DUSETTE

Warning

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

Differences

@@ -26,4 +26,7 @@
 POL_Wine_OverrideDLL "native,builtin" "atl110"
 POL_Wine_OverrideDLL "native,builtin" "msvcp110"
 POL_Wine_OverrideDLL "native,builtin" "msvcr110"
-POL_Wine_OverrideDLL "native,builtin" "vcomp110"
\ No newline at end of file
+POL_Wine_OverrideDLL "native,builtin" "vcomp110"
+
+POL_Debug_Message "Cleaning tmp folder..."
+rm $POL_USER_ROOT/tmp/*
\ No newline at end of file

New source code

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

POL_Debug_Message "Installing vcrun2012..."

cd "$POL_USER_ROOT/tmp"

POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

POL_Debug_Message "Cleaning tmp folder..."
rm $POL_USER_ROOT/tmp/*

Replies

Ronin DUSETTE Wednesday 7 January 2015 at 7:54
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,29 @@
+#!/bin/bash
+# Date : (2015-01-6 22-00)
+# Distribution used to test : Kubuntu 14.04 - 64-bit
+# Author : RoninDusette
+# Licence : GPLv3
+# PlayOnLinux: 4.2.5
+
+POL_Debug_Message "Installing vcrun2012..."
+
+cd "$POL_USER_ROOT/tmp"
+
+POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
+POL_System_cabextract "$POL_USER_ROOT/tmp/vcredist_x86.exe"
+POL_System_cabextract "$POL_USER_ROOT/tmp/a2"
+POL_System_cabextract "$POL_USER_ROOT/tmp/a3"
+
+POL_Debug_Message "Copying DLL files..."
+
+cp $POL_USER_ROOT/tmp/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
+cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
+cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
+cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
+cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
+cp $POL_USER_ROOT/tmp/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll
+
+POL_Wine_OverrideDLL "native,builtin" "atl110"
+POL_Wine_OverrideDLL "native,builtin" "msvcp110"
+POL_Wine_OverrideDLL "native,builtin" "msvcr110"
+POL_Wine_OverrideDLL "native,builtin" "vcomp110"
\ No newline at end of file

New source code

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

POL_Debug_Message "Installing vcrun2012..."

cd "$POL_USER_ROOT/tmp"

POL_System_wget "http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe" "96b377a27ac5445328cbaae210fc4f0aaa750d3f"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcredist_x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/a2"
POL_System_cabextract "$POL_USER_ROOT/tmp/a3"

POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/F_CENTRAL_atl110_x86 $WINEPREFIX/drive_c/windows/system32/atl110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110_x86 $WINEPREFIX/drive_c/windows/system32/mfc110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_mfc110u_x86 $WINEPREFIX/drive_c/windows/system32/mfc110u.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcp110_x86 $WINEPREFIX/drive_c/windows/system32/msvcp110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_msvcr110_x86 $WINEPREFIX/drive_c/windows/system32/msvcr110.dll
cp $POL_USER_ROOT/tmp/F_CENTRAL_vcomp110_x86 $WINEPREFIX/drive_c/windows/system32/vcomp110.dll

POL_Wine_OverrideDLL "native,builtin" "atl110"
POL_Wine_OverrideDLL "native,builtin" "msvcp110"
POL_Wine_OverrideDLL "native,builtin" "msvcr110"
POL_Wine_OverrideDLL "native,builtin" "vcomp110"

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