tis-vcredist2010
10.0.40219-2
The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications built using Visual Studio.
1387 downloads

Description
- package : tis-vcredist2010
- version : 10.0.40219-2
- architecture : all
- categories : Development,System and network
- maintainer : WAPT Team,Jimmy PELÉ
- description : The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications built using Visual Studio.
- locale :
- target_os : windows
- min_wapt_version : 1.5
- sources : https://store.wapt.fr/store/tis-vcredist2010
- installed_size : 27504640
- impacted_process :
- description_fr : Les packages Redistribuable Visual C++ installent les composants d'exécution nécessaires pour exécuter les applications C++ créées à l'aide de Visual Studio.
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor : Microsoft
- licence : Freeware
- signature_date : 2020-02-27T21:42:26.776954
- Homepage : https://www.microsoft.com/
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
# Declaring specific app values (TO CHANGE)
bin_name_x64 = 'vcredist_x64.exe'
bin_name_x86 = 'vcredist_x86.exe'
silent_args = '/q'
uninstall_key_x64 = '{1D8E6291-B0D5-35EC-8441-6616F567A0F7}'
uninstall_key_x86 = '{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5}'
url_dl_x64 = 'http://download.microsoft.com/download/A/8/0/A80747C3-41BD-45DF-B505-E9710D2744E0/vcredist_x64.exe'
url_dl_x86 = 'http://download.microsoft.com/download/C/6/D/C6D0FD4E-9E53-4897-9B91-836EBA2AACD3/vcredist_x86.exe'
short_soft_name = 'Microsoft Visual C++ 2010'
def install():
print('installing %s' % control.asrequirement())
# Specific app values
package_version = control.version.split('-',1)[0]
# Getting the used storage on programfiles before installation (place it on the top)
get_disk_free_space_before = get_disk_free_space(programfiles)
# Uninstalling older versions
check_installed = installed_softwares(short_soft_name)
#print(check_installed)
for uninstall in check_installed:
if uninstall['version'] < package_version:
print('Removing %s' % uninstall['name'])
cmd = uninstall_cmd(uninstall['key'])
run(cmd)
# Installing the package
install_exe_if_needed(bin_name_x86
,silentflags=silent_args
,key=uninstall_key_x86
,min_version=package_version)
if iswin64():
install_exe_if_needed(bin_name_x64
,silentflags=silent_args
,key=uninstall_key_x64
,min_version=package_version)
# Return used storage of the program. (place it on the bottom)
get_disk_free_space_after = get_disk_free_space(programfiles)
free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
print("Storage used: " + str(free_space_after_diff))
def update_package():
print('Update/Download package content from upstream binary sources')
# Getting proxy informations from WAPT settings
proxy = {}
if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxy = {'http':proxywapt,'https':proxywapt}
# Downloading binaries
if not isfile(bin_name_x64):
print('Downloading ' + bin_name_x64)
wget(url_dl_x64,bin_name_x64,proxies=proxy)
if not isfile(bin_name_x86):
print('Downloading ' + bin_name_x86)
wget(url_dl_x86,bin_name_x86,proxies=proxy)
# Change version of the package
version = '.'.join(get_file_properties(bin_name_x86)['ProductVersion'].split('.')[:3])
print('Writing ' + version + '-0 in WAPT\\control')
control = PackageEntry().load_control_from_wapt ('.')
control.version = '%s-0' % version
control.save_control_to_wapt('.')