You are here    Supported software    POL_Install_vcrun2012 nl sv ru pl es de fr

POL_Install_vcrun2012

Informations

Creator Message
Ronin DUSETTE
Admin

Warning

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

Informations

Platforms:
Downloads: 294981
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 : 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

Contributions

Filters:

Contribute
Member Message
Ronin DUSETTE Thursday 8 January 2015 at 3:51
Ronin DUSETTE
Admin

Information

This update has been approved by the team.

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
Admin

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
Admin

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
Admin

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
Admin

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
Admin

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
Admin

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