diff --git a/bucket/vcredist2022.json b/bucket/vcredist2022.json new file mode 100644 index 0000000..e61e347 --- /dev/null +++ b/bucket/vcredist2022.json @@ -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" + ] +}