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

POL_Install_vcrun2013

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: 276543
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 : 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

Contributions

Filters:

Contribute
Member Message
Ronin DUSETTE Thursday 8 January 2015 at 20:33
Ronin DUSETTE
Admin

Information

This update has been approved by the team.

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.