POL_Install_vcrun2005

Informations

Créateur Messages
Berillions

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 3237960
Wine: System

Retours d'expérience

Description

Install VC Runtime 2005 SP1

Code source

#!/bin/bash
# PlayOnLinux Function
# Date : Unknown
# Last revision : (2019-09-05 18:21)
# Author : Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# [Berillions] (2013 ?)
#
# [petch] (2013-01-22 16:49)
#   Fixing bug #1787
# [Dadu042] (2019-09-05 18:21)
#   Update URLs.
#   Remove FR case.
 
FORCE_MODE=$1
 
# Installing x64 version
if [ "$POL_ARCH" = "amd64" ]; then
        # Downloading vcrun2005 sp1 x64 EN
        POL_Download_Resource "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x64.EXE" "56eaf4e1237c974f6984edc93972c123" "vcrun2005"
fi

Downloading vcrun2005 sp1 x86 EN
POL_Download_Resource "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x86.EXE" "ce2922f83fb4b170affce0ea448b107b" "vcrun2005"


# Check if vcrun2005 is already installed
CHECK_VC2K5=`find $WINEPREFIX -name "msdia80.dll"`
if [ "$CHECK_VC2K5" = "" -o "$FORCE_MODE" = "--force" ]; then
        if [ "$CHECK_VC2K5" != "" ]; then
                POL_SetupWindow_message "$(eval_gettext 'Warning : vcrun2005 seems to be already installed.\nForcing reinstallation.')" "$TITLE"
        fi
 
        cd "$POL_USER_ROOT/ressources/vcrun2005"
 
        # Installing vcrun2005 sp1
        if [ "$POL_ARCH" = "amd64" ]; then
                rm "$WINEPREFIX/drive_c/windows/syswow64/msvcp80.dll"
                rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
                POL_Wine start /unix "vcredist_x64.exe" /q
                POL_Wine_WaitExit "vcrun2005 sp1 x64"
                POL_Wine start /unix "vcredist_x86.exe" /q
                POL_Wine_WaitExit "vcrun2005 sp1 x86"
        else
                rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
                POL_Wine start /unix "vcredist_x86.exe" /q
                POL_Wine_WaitExit "vcrun2005 sp1 x86"
        fi
 
        # Overriding dll
        POL_Wine_OverrideDLL "native,builtin" "msvcr80"
fi

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Jeudi 5 September 2019 à 18:21
Dadu042
Modérateur

Information

Cette mise à jour a été acceptée par l'équipe

Messages

URLs fixed.

Differences

@@ -1,58 +1,54 @@
 #!/bin/bash
 # PlayOnLinux Function
 # Date : Unknown
-# Last revision : (2013-01-22 16:49)
+# Last revision : (2019-09-05 18:21)
 # Author : Berillions
 # Updated by : GNU_Raziel
 # Only For : http://www.playonlinux.com
 
+# [Berillions] (2013 ?)
+#
 # [petch] (2013-01-22 16:49)
 #   Fixing bug #1787
-
+# [Dadu042] (2019-09-05 18:21)
+#   Update URLs.
+#   Remove FR case.
+ 
 FORCE_MODE=$1
-
+ 
 # Installing x64 version
 if [ "$POL_ARCH" = "amd64" ]; then
-	if [ "$POL_LANG" = "fr" ]; then
-		# Downloading vcrun2005 sp1 x64 FR
-		POL_Download_Resource "http://download.microsoft.com/download/2/d/8/2d83625f-1af0-4807-9da0-5b994058d213/vcredist_x64.exe" "684871e3a5acf1a0be20d24abe897287" "vcrun2005"
-	else
-		# Downloading vcrun2005 sp1 x64 EN
-		POL_Download_Resource "http://download.microsoft.com/download/d/4/1/d41aca8a-faa5-49a7-a5f2-ea0aa4587da0/vcredist_x64.exe" "b55acaf32792a0627986aa724ebfcf07" "vcrun2005"
-	fi
+	# Downloading vcrun2005 sp1 x64 EN
+	POL_Download_Resource "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x64.EXE" "56eaf4e1237c974f6984edc93972c123" "vcrun2005"
 fi
 
-if [ "$POL_LANG" = "fr" ]; then
-	# Downloading vcrun2005 sp1 x86 FR
-	POL_Download_Resource "http://download.microsoft.com/download/a/3/7/a379292d-24f2-4bbb-841b-c2aeb1100471/vcredist_x86.exe" "7edcbd8887a5d01c95517fb4483853b3" "vcrun2005"
-else
-	# Downloading vcrun2005 sp1 x86 EN
-	POL_Download_Resource "http://download.microsoft.com/download/e/1/c/e1c773de-73ba-494a-a5ba-f24906ecf088/vcredist_x86.exe" "5c82be7ad1775b67916ee19c15b99331" "vcrun2005"
-fi
+Downloading vcrun2005 sp1 x86 EN
+POL_Download_Resource "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x86.EXE" "ce2922f83fb4b170affce0ea448b107b" "vcrun2005"
+
 
 # Check if vcrun2005 is already installed
 CHECK_VC2K5=`find $WINEPREFIX -name "msdia80.dll"`
 if [ "$CHECK_VC2K5" = "" -o "$FORCE_MODE" = "--force" ]; then
-	if [ "$CHECK_VC2K5" != "" ]; then
-		POL_SetupWindow_message "$(eval_gettext 'Warning : vcrun2005 seems to be already installed.\nForcing reinstallation.')" "$TITLE"
-	fi
-
-	cd "$POL_USER_ROOT/ressources/vcrun2005"
-
-	# Installing vcrun2005 sp1
-	if [ "$POL_ARCH" = "amd64" ]; then
-		rm "$WINEPREFIX/drive_c/windows/syswow64/msvcp80.dll"
-		rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
-		POL_Wine start /unix "vcredist_x64.exe" /q
-		POL_Wine_WaitExit "vcrun2005 sp1 x64"
-		POL_Wine start /unix "vcredist_x86.exe" /q
-		POL_Wine_WaitExit "vcrun2005 sp1 x86"
-	else
-		rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
-		POL_Wine start /unix "vcredist_x86.exe" /q
-		POL_Wine_WaitExit "vcrun2005 sp1 x86"
-	fi
-
-	# Overriding dll
-	POL_Wine_OverrideDLL "native,builtin" "msvcr80"
+        if [ "$CHECK_VC2K5" != "" ]; then
+                POL_SetupWindow_message "$(eval_gettext 'Warning : vcrun2005 seems to be already installed.\nForcing reinstallation.')" "$TITLE"
+        fi
+ 
+        cd "$POL_USER_ROOT/ressources/vcrun2005"
+ 
+        # Installing vcrun2005 sp1
+        if [ "$POL_ARCH" = "amd64" ]; then
+                rm "$WINEPREFIX/drive_c/windows/syswow64/msvcp80.dll"
+                rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
+                POL_Wine start /unix "vcredist_x64.exe" /q
+                POL_Wine_WaitExit "vcrun2005 sp1 x64"
+                POL_Wine start /unix "vcredist_x86.exe" /q
+                POL_Wine_WaitExit "vcrun2005 sp1 x86"
+        else
+                rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
+                POL_Wine start /unix "vcredist_x86.exe" /q
+                POL_Wine_WaitExit "vcrun2005 sp1 x86"
+        fi
+ 
+        # Overriding dll
+        POL_Wine_OverrideDLL "native,builtin" "msvcr80"
 fi
\ No newline at end of file

Nouveau code source

#!/bin/bash
# PlayOnLinux Function
# Date : Unknown
# Last revision : (2019-09-05 18:21)
# Author : Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# [Berillions] (2013 ?)
#
# [petch] (2013-01-22 16:49)
#   Fixing bug #1787
# [Dadu042] (2019-09-05 18:21)
#   Update URLs.
#   Remove FR case.
 
FORCE_MODE=$1
 
# Installing x64 version
if [ "$POL_ARCH" = "amd64" ]; then
        # Downloading vcrun2005 sp1 x64 EN
        POL_Download_Resource "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x64.EXE" "56eaf4e1237c974f6984edc93972c123" "vcrun2005"
fi

Downloading vcrun2005 sp1 x86 EN
POL_Download_Resource "https://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x86.EXE" "ce2922f83fb4b170affce0ea448b107b" "vcrun2005"


# Check if vcrun2005 is already installed
CHECK_VC2K5=`find $WINEPREFIX -name "msdia80.dll"`
if [ "$CHECK_VC2K5" = "" -o "$FORCE_MODE" = "--force" ]; then
        if [ "$CHECK_VC2K5" != "" ]; then
                POL_SetupWindow_message "$(eval_gettext 'Warning : vcrun2005 seems to be already installed.\nForcing reinstallation.')" "$TITLE"
        fi
 
        cd "$POL_USER_ROOT/ressources/vcrun2005"
 
        # Installing vcrun2005 sp1
        if [ "$POL_ARCH" = "amd64" ]; then
                rm "$WINEPREFIX/drive_c/windows/syswow64/msvcp80.dll"
                rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
                POL_Wine start /unix "vcredist_x64.exe" /q
                POL_Wine_WaitExit "vcrun2005 sp1 x64"
                POL_Wine start /unix "vcredist_x86.exe" /q
                POL_Wine_WaitExit "vcrun2005 sp1 x86"
        else
                rm "$WINEPREFIX/drive_c/windows/system32/msvcp80.dll"
                POL_Wine start /unix "vcredist_x86.exe" /q
                POL_Wine_WaitExit "vcrun2005 sp1 x86"
        fi
 
        # Overriding dll
        POL_Wine_OverrideDLL "native,builtin" "msvcr80"
fi

Réponses

proenix12 Samedi 14 Mai 2016 à 3:27
proenix12 Anonymous

Messages

Can't download all microsoft stuff

Réponses

Jeudi 5 September 2019 à 18:13
I confirm missing files (dead links).