{
    "version": "11.0.61030.0",
    "description": "Microsoft Visual C++ Redistributable for Visual Studio 2012.",
    "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 vcredist2012'",
    "url": [
        "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe",
        "https://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe"
    ],
    "hash": [
        "681be3e5ba9fd3da02c09d7e565adfa078640ed66a0d58583efad2c1e3cc4064",
        "b924ad8062eaf4e70437c8be50fa612162795ff0839479546ce907ffa8d6e386"
    ],
    "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"
    ]
}
