POL_Install_vcrun2015

Informations

Creator Wiadmości
Dadu042
Moderator

Warning

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

Informations

Platforms:
Downloads: 34857
Wine: System

Feedbacks

Description

Based off the winetricks vcrun2015 implementation, translated to POL calls. 

 

This only installs 32 bits files.

Source code

#!/bin/bash
# Date : (2019-09-13 10:34)
# Distribution used to test : Xubuntu 18.04 - 64-bit
# Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
# Licence : GPLv3
# PlayOnLinux: 4.3.4

POL_Debug_Message "Installing vcrun2015..."

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) 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 "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
mkdir $POL_USER_ROOT/tmp/vcrun2015
cd $POL_USER_ROOT/tmp/vcrun2015

POL_Debug_Message "Extracting DLL files..."

cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a11"
  
POL_Debug_Message "Copying DLL files..."
 
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140.dll $WINEPREFIX/drive_c/windows/system32/mfc140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u.dll $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140.dll $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcruntime140.dll $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140.dll $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140enu.dll $WINEPREFIX/drive_c/windows/system32/mfc140enu.dll
 
POL_Wine_OverrideDLL "native,builtin" "mfc140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
 
# Piece (unused here) from the Winetricks sourcecode (2019-09):
# w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase
  
POL_Debug_Message "Cleaning tmp folder..."
# rm -rf $POL_USER_ROOT/tmp/vcrun2015

Contributions

Filters:

Contribute
Member Wiadmości
Dadu042 Saturday 13 June 2020 at 11:22
Dadu042
Moderator

Information

This update has been approved by the team.

Wiadmości

It fail to run on 32 bits OS...

Differences

@@ -9,8 +9,8 @@
 
 # Checking wine arch
 if [ "$POL_ARCH" == "amd64" ]; then
-        # POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) might not work on a 64-bit installation.')"
-        POL_SetupWindow_message "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) might not work on a 64-bit installation.')" "$TITLE"
+        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) 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 "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"

New source code

#!/bin/bash
# Date : (2019-09-13 10:34)
# Distribution used to test : Xubuntu 18.04 - 64-bit
# Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
# Licence : GPLv3
# PlayOnLinux: 4.3.4

POL_Debug_Message "Installing vcrun2015..."

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) 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 "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
mkdir $POL_USER_ROOT/tmp/vcrun2015
cd $POL_USER_ROOT/tmp/vcrun2015

POL_Debug_Message "Extracting DLL files..."

cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a11"
  
POL_Debug_Message "Copying DLL files..."
 
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140.dll $WINEPREFIX/drive_c/windows/system32/mfc140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u.dll $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140.dll $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcruntime140.dll $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140.dll $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140enu.dll $WINEPREFIX/drive_c/windows/system32/mfc140enu.dll
 
POL_Wine_OverrideDLL "native,builtin" "mfc140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
 
# Piece (unused here) from the Winetricks sourcecode (2019-09):
# w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase
  
POL_Debug_Message "Cleaning tmp folder..."
# rm -rf $POL_USER_ROOT/tmp/vcrun2015

Odpowiedzi

Tuesday 28 July 2020 at 20:57
Mistake: 'It fail to run on 64 bits OS...'
Dadu042 Saturday 13 June 2020 at 11:12
Dadu042
Moderator

Warning

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

Wiadmości

Do not block installation on 64 bits, just show a warning.

Differences

@@ -9,7 +9,8 @@
 
 # Checking wine arch
 if [ "$POL_ARCH" == "amd64" ]; then
-        POL_Debug_Fatal "$(eval_gettext 'This package might not work on a 64-bit installation')"
+        # POL_Debug_Fatal "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) might not work on a 64-bit installation.')"
+        POL_SetupWindow_message "$(eval_gettext 'WARNING: This 32bits package (vcrun2015) might not work on a 64-bit installation.')" "$TITLE"
 fi
 
 POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"

New source code

#!/bin/bash
# Date : (2019-09-13 10:34)
# Distribution used to test : Xubuntu 18.04 - 64-bit
# Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
# Licence : GPLv3
# PlayOnLinux: 4.3.4

POL_Debug_Message "Installing vcrun2015..."

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

POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
mkdir $POL_USER_ROOT/tmp/vcrun2015
cd $POL_USER_ROOT/tmp/vcrun2015

POL_Debug_Message "Extracting DLL files..."

cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a11"
  
POL_Debug_Message "Copying DLL files..."
 
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140.dll $WINEPREFIX/drive_c/windows/system32/mfc140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u.dll $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140.dll $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcruntime140.dll $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140.dll $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140enu.dll $WINEPREFIX/drive_c/windows/system32/mfc140enu.dll
 
POL_Wine_OverrideDLL "native,builtin" "mfc140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
 
# Piece (unused here) from the Winetricks sourcecode (2019-09):
# w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase
  
POL_Debug_Message "Cleaning tmp folder..."
# rm -rf $POL_USER_ROOT/tmp/vcrun2015

Odpowiedzi

Edytowane przez Dadu042

Dadu042 Saturday 21 March 2020 at 22:25
Dadu042
Moderator

Warning

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

Wiadmości

Fix attempt (fix file names), with the help of Yaolt.

Differences

@@ -4,9 +4,14 @@
 # Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
 # Licence : GPLv3
 # PlayOnLinux: 4.3.4
-  
+
 POL_Debug_Message "Installing vcrun2015..."
-  
+
+# Checking wine arch
+if [ "$POL_ARCH" == "amd64" ]; then
+        POL_Debug_Fatal "$(eval_gettext 'This package might not work on a 64-bit installation')"
+fi
+
 POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
 mkdir $POL_USER_ROOT/tmp/vcrun2015
 cd $POL_USER_ROOT/tmp/vcrun2015
@@ -20,17 +25,18 @@
   
 POL_Debug_Message "Copying DLL files..."
  
-cp $POL_USER_ROOT/tmp/vcrun2015/mfc140_x86 $WINEPREFIX/drive_c/windows/system32/mfc140.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u_x86 $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140_x86 $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/msvcr140_x86 $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140_x86 $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
- 
+cp $POL_USER_ROOT/tmp/vcrun2015/mfc140.dll $WINEPREFIX/drive_c/windows/system32/mfc140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u.dll $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140.dll $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/vcruntime140.dll $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140.dll $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/mfc140enu.dll $WINEPREFIX/drive_c/windows/system32/mfc140enu.dll
  
-POL_Wine_OverrideDLL "native,builtin" "atl140"
+POL_Wine_OverrideDLL "native,builtin" "mfc140"
 POL_Wine_OverrideDLL "native,builtin" "msvcp140"
 POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
 POL_Wine_OverrideDLL "native,builtin" "vcomp140"
+POL_Wine_OverrideDLL "native,builtin" "vcomp140"
  
 # Piece (unused here) from the Winetricks sourcecode (2019-09):
 # w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase

New source code

#!/bin/bash
# Date : (2019-09-13 10:34)
# Distribution used to test : Xubuntu 18.04 - 64-bit
# Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
# Licence : GPLv3
# PlayOnLinux: 4.3.4

POL_Debug_Message "Installing vcrun2015..."

# Checking wine arch
if [ "$POL_ARCH" == "amd64" ]; then
        POL_Debug_Fatal "$(eval_gettext 'This package might not work on a 64-bit installation')"
fi

POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
mkdir $POL_USER_ROOT/tmp/vcrun2015
cd $POL_USER_ROOT/tmp/vcrun2015

POL_Debug_Message "Extracting DLL files..."

cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a11"
  
POL_Debug_Message "Copying DLL files..."
 
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140.dll $WINEPREFIX/drive_c/windows/system32/mfc140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u.dll $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140.dll $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcruntime140.dll $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140.dll $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140enu.dll $WINEPREFIX/drive_c/windows/system32/mfc140enu.dll
 
POL_Wine_OverrideDLL "native,builtin" "mfc140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
 
# Piece (unused here) from the Winetricks sourcecode (2019-09):
# w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase
  
POL_Debug_Message "Cleaning tmp folder..."
# rm -rf $POL_USER_ROOT/tmp/vcrun2015

Odpowiedzi

Saturday 21 March 2020 at 22:43
Work ! The game 'The Dark Mod' now does launch and is playable.

Edytowane przez Dadu042

Dadu042 Monday 16 September 2019 at 16:47
Dadu042
Moderator

Warning

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

Wiadmości

Fix attempt.

Differences

@@ -10,7 +10,9 @@
 POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
 mkdir $POL_USER_ROOT/tmp/vcrun2015
 cd $POL_USER_ROOT/tmp/vcrun2015
- 
+
+POL_Debug_Message "Extracting DLL files..."
+
 cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
 POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"

New source code

#!/bin/bash
# Date : (2019-09-13 10:34)
# Distribution used to test : Xubuntu 18.04 - 64-bit
# Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
# Licence : GPLv3
# PlayOnLinux: 4.3.4
  
POL_Debug_Message "Installing vcrun2015..."
  
POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
mkdir $POL_USER_ROOT/tmp/vcrun2015
cd $POL_USER_ROOT/tmp/vcrun2015

POL_Debug_Message "Extracting DLL files..."

cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a11"
  
POL_Debug_Message "Copying DLL files..."
 
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140_x86 $WINEPREFIX/drive_c/windows/system32/mfc140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u_x86 $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140_x86 $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcr140_x86 $WINEPREFIX/drive_c/windows/system32/vcruntime140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140_x86 $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
 
 
POL_Wine_OverrideDLL "native,builtin" "atl140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "vcruntime140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"
 
# Piece (unused here) from the Winetricks sourcecode (2019-09):
# w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase
  
POL_Debug_Message "Cleaning tmp folder..."
# rm -rf $POL_USER_ROOT/tmp/vcrun2015

Odpowiedzi

Wednesday 25 September 2019 at 13:13
Reminder: vcrun2015 is required by the game Journey.
Sunday 17 November 2019 at 19:20
Error still there: 'Script don't work, cabextract returns a error (-1 ?).'.
Wednesday 20 November 2019 at 23:01
Have you tried to run cabextract locally?

Edytowane przez Dadu042

Dadu042 Friday 13 September 2019 at 10:37
Dadu042
Moderator

Warning

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

Wiadmości

Script don't work, cabextract  returns a error (-1 ?).

Differences

@@ -18,11 +18,11 @@
  
 POL_Debug_Message "Copying DLL files..."
 
-cp $POL_USER_ROOT/tmp/vcrun2015/F_CENTRAL_mfc140_x86 $WINEPREFIX/drive_c/windows/system32/mfc140.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/F_CENTRAL_mfc140u_x86 $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/F_CENTRAL_msvcp140_x86 $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/F_CENTRAL_msvcr140_x86 $WINEPREFIX/drive_c/windows/system32/msvcr140.dll
-cp $POL_USER_ROOT/tmp/vcrun2015/F_CENTRAL_vcomp140_x86 $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/mfc140_x86 $WINEPREFIX/drive_c/windows/system32/mfc140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u_x86 $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140_x86 $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/msvcr140_x86 $WINEPREFIX/drive_c/windows/system32/msvcr140.dll
+cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140_x86 $WINEPREFIX/drive_c/windows/system32/vcomp140.dll
 
 
 POL_Wine_OverrideDLL "native,builtin" "atl140"

New source code

#!/bin/bash
# Date : (2019-09-13 10:34)
# Distribution used to test : Xubuntu 18.04 - 64-bit
# Author : Dadu042 (inspired from RoninDusette's vcrun2013 script)
# Licence : GPLv3
# PlayOnLinux: 4.3.4
 
POL_Debug_Message "Installing vcrun2015..."
 
POL_Download_Resource "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x86.exe" "1a15e6606bac9647e7ad3caa543377cf" "vcrun2015"
mkdir $POL_USER_ROOT/tmp/vcrun2015
cd $POL_USER_ROOT/tmp/vcrun2015

cp $POL_USER_ROOT/ressources/vcrun2015/vc_redist.x86.exe $POL_USER_ROOT/tmp/vcrun2015/
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/vc_redist.x86.exe"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a10"
POL_System_cabextract "$POL_USER_ROOT/tmp/vcrun2015/a11"
 
POL_Debug_Message "Copying DLL files..."

cp $POL_USER_ROOT/tmp/vcrun2015/mfc140_x86 $WINEPREFIX/drive_c/windows/system32/mfc140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/mfc140u_x86 $WINEPREFIX/drive_c/windows/system32/mfc140u.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcp140_x86 $WINEPREFIX/drive_c/windows/system32/msvcp140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/msvcr140_x86 $WINEPREFIX/drive_c/windows/system32/msvcr140.dll
cp $POL_USER_ROOT/tmp/vcrun2015/vcomp140_x86 $WINEPREFIX/drive_c/windows/system32/vcomp140.dll


POL_Wine_OverrideDLL "native,builtin" "atl140"
POL_Wine_OverrideDLL "native,builtin" "msvcp140"
POL_Wine_OverrideDLL "native,builtin" "msvcr140"
POL_Wine_OverrideDLL "native,builtin" "vcomp140"

# Piece (unused here) from the Winetricks sourcecode (2019-09):
# w_override_dlls native,builtin api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase
 
POL_Debug_Message "Cleaning tmp folder..."
# rm -rf $POL_USER_ROOT/tmp/vcrun2015

Odpowiedzi

Monday 16 September 2019 at 16:43
Notes:

 

cabextract -l  a10
a10: WARNING; possible 16128 extra bytes at end of file.
Viewing cabinet: a10
 File size | Date       Time     | Name
-----------+---------------------+-------------
     19864 | 25.06.2015 23:34:28 | api_ms_win_core_console_l1_1_0.dll
     19360 | 25.06.2015 23:34:28 | api_ms_win_core_datetime_l1_1_0.dll
     19344 | 25.06.2015 23:34:28 | api_ms_win_core_debug_l1_1_0.dll
     19376 | 25.06.2015 23:34:28 | api_ms_win_core_errorhandling_l1_1_0.dll
     22928 | 25.06.2015 23:34:28 | api_ms_win_core_file_l1_1_0.dll
     19344 | 25.06.2015 23:34:28 | api_ms_win_core_file_l1_2_0.dll
     19336 | 25.06.2015 23:34:28 | api_ms_win_core_file_l2_1_0.dll
     19352 | 25.06.2015 23:34:28 | api_ms_win_core_handle_l1_1_0.dll
     19856 | 25.06.2015 23:34:28 | api_ms_win_core_heap_l1_1_0.dll
     19880 | 25.06.2015 23:34:28 | api_ms_win_core_interlocked_l1_1_0.dll
     19888 | 25.06.2015 23:34:28 | api_ms_win_core_libraryloader_l1_1_0.dll
     21936 | 25.06.2015 23:34:28 | api_ms_win_core_localization_l1_2_0.dll
     19864 | 25.06.2015 23:34:28 | api_ms_win_core_memory_l1_1_0.dll
     19360 | 25.06.2015 23:34:28 | api_ms_win_core_namedpipe_l1_1_0.dll
     20424 | 25.06.2015 23:34:28 | api_ms_win_core_processenvironment_l1_1_0.dll
     21432 | 25.06.2015 23:34:28 | api_ms_win_core_processthreads_l1_1_0.dll
     19896 | 25.06.2015 23:34:28 | api_ms_win_core_processthreads_l1_1_1.dll
     18840 | 25.06.2015 23:34:28 | api_ms_win_core_profile_l1_1_0.dll
     18856 | 25.06.2015 23:34:28 | api_ms_win_core_rtlsupport_l1_1_0.dll
     19352 | 25.06.2015 23:34:28 | api_ms_win_core_string_l1_1_0.dll
     21392 | 25.06.2015 23:34:28 | api_ms_win_core_synch_l1_1_0.dll
     19856 | 25.06.2015 23:34:28 | api_ms_win_core_synch_l1_2_0.dll
     20376 | 25.06.2015 23:34:28 | api_ms_win_core_sysinfo_l1_1_0.dll
     19360 | 25.06.2015 23:34:28 | api_ms_win_core_timezone_l1_1_0.dll
     19344 | 25.06.2015 23:34:28 | api_ms_win_core_util_l1_1_0.dll
     20368 | 25.06.2015 23:34:28 | api_ms_win_crt_conio_l1_1_0.dll
     23448 | 25.06.2015 23:34:28 | api_ms_win_crt_convert_l1_1_0.dll
     19880 | 25.06.2015 23:34:28 | api_ms_win_crt_environment_l1_1_0.dll
     21408 | 25.06.2015 23:34:28 | api_ms_win_crt_filesystem_l1_1_0.dll
     20360 | 25.06.2015 23:34:28 | api_ms_win_crt_heap_l1_1_0.dll
     19856 | 25.06.2015 23:34:28 | api_ms_win_crt_locale_l1_1_0.dll
     30088 | 25.06.2015 23:34:28 | api_ms_win_crt_math_l1_1_0.dll
     27552 | 25.06.2015 23:34:28 | api_ms_win_crt_multibyte_l1_1_0.dll
     72088 | 25.06.2015 23:34:28 | api_ms_win_crt_private_l1_1_0.dll
     20376 | 25.06.2015 23:34:28 | api_ms_win_crt_process_l1_1_0.dll
     23952 | 25.06.2015 23:34:28 | api_ms_win_crt_runtime_l1_1_0.dll
     25488 | 25.06.2015 23:34:28 | api_ms_win_crt_stdio_l1_1_0.dll
     25488 | 25.06.2015 23:34:28 | api_ms_win_crt_string_l1_1_0.dll
     21896 | 25.06.2015 23:34:28 | api_ms_win_crt_time_l1_1_0.dll
     19864 | 25.06.2015 23:34:28 | api_ms_win_crt_utility_l1_1_0.dll
    243520 | 25.06.2015 23:34:28 | concrt140.dll
    439608 | 25.06.2015 23:34:28 | msvcp140.dll
    883512 | 25.06.2015 23:34:28 | ucrtbase.dll
    400544 | 25.06.2015 23:34:28 | vcamp140.dll
    266928 | 25.06.2015 23:34:28 | vccorlib140.dll
    182432 | 25.06.2015 23:34:28 | vcomp140.dll
     85328 | 25.06.2015 23:34:28 | vcruntime140.dll

 

 

cabextract -l  a11
a11: WARNING; possible 16128 extra bytes at end of file.
Viewing cabinet: a11
 File size | Date       Time     | Name
-----------+---------------------+-------------
   4378776 | 25.06.2015 23:34:28 | mfc140.dll
     46760 | 25.06.2015 23:34:28 | mfc140chs.dll
     46760 | 25.06.2015 23:34:28 | mfc140cht.dll
     75432 | 25.06.2015 23:34:28 | mfc140deu.dll
     65704 | 25.06.2015 23:34:28 | mfc140enu.dll
     74408 | 25.06.2015 23:34:28 | mfc140esn.dll
     75432 | 25.06.2015 23:34:28 | mfc140fra.dll
     73384 | 25.06.2015 23:34:28 | mfc140ita.dll
     54952 | 25.06.2015 23:34:28 | mfc140jpn.dll
     53928 | 25.06.2015 23:34:28 | mfc140kor.dll
     71336 | 25.06.2015 23:34:28 | mfc140rus.dll
   4443808 | 25.06.2015 23:34:28 | mfc140u.dll
     94368 | 25.06.2015 23:34:28 | mfcm140.dll
     94368 | 25.06.2015 23:34:28 | mfcm140u.dll

 

Edytowane przez Dadu042