/
vcredist.json
34 lines (34 loc) · 1.77 KB
/
vcredist.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"version": "14.31.31103.0",
"description": "Microsoft Visual C++ Redistributables bundle for all major versions",
"homepage": "https://www.visualstudio.com/downloads/",
"license": {
"identifier": "Freeware",
"url": "https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx"
},
"notes": "You can now remove all vcredist installers with 'scoop uninstall vcredist2005 vcredist2008 vcredist2010 vcredist2012 vcredist2013 vcredist'",
"depends": [
"vcredist2005",
"vcredist2008",
"vcredist2010",
"vcredist2012",
"vcredist2013"
],
"url": [
"https://download.visualstudio.microsoft.com/download/pr/d22ecb93-6eab-4ce1-89f3-97a816c55f04/37ED59A66699C0E5A7EBEEF7352D7C1C2ED5EDE7212950A1B0A8EE289AF4A95B/VC_redist.x64.exe",
"https://download.visualstudio.microsoft.com/download/pr/8e32d7eb-5130-4dc8-9c3e-5891f375e112/B7AE307237F869E09F7413691A2CD1944357B5CEE28049C0A0D3430B47BB3EDC/VC_redist.x86.exe"
],
"hash": [
"37ed59a66699c0e5a7ebeef7352d7c1c2ed5ede7212950a1b0a8ee289af4a95b",
"b7ae307237f869e09f7413691a2cd1944357b5cee28049c0a0d3430b47bb3edc"
],
"post_install": [
"# For error codes, see https://docs.microsoft.com/en-us/windows/win32/msi/error-codes",
"$ec = @{",
" 1638 = 'This product is already installed';",
" 3010 = 'A restart is required to complete the installation';",
"}",
"Invoke-ExternalCommand -FilePath \"$dir\\vc_redist.x64.exe\" -ArgumentList '/fo', '/quiet', '/norestart' -ContinueExitCodes $ec -RunAs | Out-Null",
"Invoke-ExternalCommand -FilePath \"$dir\\vc_redist.x86.exe\" -ArgumentList '/fo', '/quiet', '/norestart' -ContinueExitCodes $ec -RunAs | Out-Null"
]
}