{
    "version": "9.0.30729.5677",
    "description": "Microsoft Visual C++ Redistributable for Visual Studio 2008.",
    "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 vcredist2008'",
    "url": [
        "https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe",
        "https://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe"
    ],
    "hash": [
        "c5e273a4a16ab4d5471e91c7477719a2f45ddadb76c7f98a38fa5074a6838654",
        "8742bcbf24ef328a72d2a27b693cc7071e38d3bb4b9b44dec42aa3d2c8d61d92"
    ],
    "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', '/qn', '/norestart' -ContinueExitCodes $ec -RunAs | Out-Null",
        "Invoke-ExternalCommand -FilePath \"$dir\\vcredist_x86.exe\" -ArgumentList '/fo', '/qn', '/norestart' -ContinueExitCodes $ec -RunAs | Out-Null"
    ]
}
