POL_Install_vcrun2005

Informations

Creator Message
Berillions

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3175088
Wine: System

Feedbacks

Description

Install VC Runtime 2005 SP1

Source code

#!/bin/bash
# PlayOnLinux Function
# Date : Unknown
# Last revision : (2013-01-22 16:49)
# Author : Berillions
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com

# [petch] (2013-01-22 16:49)
#   Fixing bug #1787

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

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

Contribute
Member Message
proenix12 Saturday 14 May 2016 at 3:27
proenix12 Anonymous

Message

Can't download all microsoft stuff

Replies