{
    "version": "12.0.40664.0",
    "description": "Microsoft Visual C++ Redistributable for Visual Studio 2013.",
    "homepage": "https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads",
    "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 vcredist2013'",
    "url": [
        "https://download.visualstudio.microsoft.com/download/pr/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe",
        "https://download.visualstudio.microsoft.com/download/pr/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe"
    ],
    "hash": [
        "a4bba7701e355ae29c403431f871a537897c363e215cafe706615e270984f17c",
        "53b605d1100ab0a88b867447bbf9274b5938125024ba01f5105a9e178a3dcdbd"
    ],
    "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\\vcredist_x64.exe\" -ArgumentList '/fo', '/quiet', '/norestart' -ContinueExitCodes $ec -RunAs | Out-Null",
        "Invoke-ExternalCommand -FilePath \"$dir\\vcredist_x86.exe\" -ArgumentList '/fo', '/quiet', '/norestart' -ContinueExitCodes $ec -RunAs | Out-Null"
    ]
}
