vcredist2022: Add version 14.34.31931.0

This commit is contained in:
椰子 2023-01-03 22:38:19 +08:00
parent 4c0a1d9a6c
commit 87ac017812

27
bucket/vcredist2022.json Normal file
View File

@ -0,0 +1,27 @@
{
"version": "14.34.31931.0",
"description": "Microsoft Visual C++ Redistributable for Visual Studio 2022",
"homepage": "https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170",
"license": {
"identifier": "Freeware",
"url": "https://www.microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx"
},
"notes": "You can now remove this installer with 'scoop uninstall vcredist2022'",
"url": [
"http://dl.simaek.com/scoop/buckets/custom/package/vcredist2022/VC_redist.x64.exe",
"http://dl.simaek.com/scoop/buckets/custom/package/vcredist2022/VC_redist.x86.exe"
],
"hash": [
"2257b3fbe3c7559de8b31170155a433faf5b83829e67c589d5674ff086b868b9",
"ce4843a946ee3732eb2bfc098db5741dc5495c7bea204e11d379336dcc68e875"
],
"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"
]
}