diff --git a/photoshopCC.sh b/photoshopCC.sh index 062f946..7cfda30 100755 --- a/photoshopCC.sh +++ b/photoshopCC.sh @@ -62,6 +62,8 @@ function main(){ install_vcrun2008 sleep 3 install_vcrun2010 + sleep 3 + install_vcrun2012 } @@ -86,6 +88,24 @@ function warning(){ setup_log "$@" } +function install_vcrun2012(){ + local filename="vcrun2012.tgz" + local filemd5="86f912bed7b3d76aad04adc23dbe9f48" + local filelink="http://bit.ly/vcrun2012" + local filepath="$CACHE_PATH/$filename" + + download_component $filepath $filemd5 $filelink $filename + + mkdir "$RESOURCES_PATH/vcrun2012" + tar -xzf $filepath -C "$RESOURCES_PATH/vcrun2012" + + echo "===============| VCRUN 2012 |===============" >> "$SCR_PATH/wine-error.log" + + wine "$RESOURCES_PATH/vcrun2010/vcredist_x86.exe" 2>> "$SCR_PATH/wine-error.log" || error "something went wrong during installing vcrun2012 x86" + show_message "vcrun 2012 installed..." + unset filename filemd5 filelink filepath +} + function install_vcrun2010(){ local filename="vcrun2010.tgz" local filemd5="484a242b64b3a7de0fa6567d78b771f9"