vcrun2012 install function added

This commit is contained in:
victor 2020-02-12 11:23:30 +03:30
parent a69ce7bc5d
commit bafe216a6f
1 changed files with 24 additions and 0 deletions

View File

@ -58,7 +58,11 @@ function main(){
#create resources directory
rmdir_if_exist $RESOURCES_PATH
#install vcrun 2008 ,2010,2012,2013
install_vcrun2008
sleep 3
install_vcrun2010
}
@ -82,6 +86,26 @@ function warning(){
setup_log "$@"
}
function install_vcrun2010(){
local filename="vcrun2010.tgz"
local filemd5="484a242b64b3a7de0fa6567d78b771f9"
local filelink="http://bit.ly/vcrun2010"
local filepath="$CACHE_PATH/$filename"
download_component $filepath $filemd5 $filelink $filename
mkdir "$RESOURCES_PATH/vcrun2010"
tar -xzf $filepath -C "$RESOURCES_PATH/vcrun2010"
echo "===============| VCRUN 2010 |===============" >> "$SCR_PATH/wine-error.log"
wine "$RESOURCES_PATH/vcrun2010/vcredist_x64.exe" 2>> "$SCR_PATH/wine-error.log" || error "something went wrong during installing vcrun2010 x64"
wine "$RESOURCES_PATH/vcrun2010/vcredist_x86.exe" 2>> "$SCR_PATH/wine-error.log" || error "something went wrong during installing vcrun2010 x86"
show_message "vcrun 2010 installed..."
unset filename filemd5 filelink filepath
}
function install_vcrun2008(){
local filename="vcrun2008.tgz"
local filemd5="38983c8f8736738ed9d2e2bbf5d82373"