{
    "version": "2026.1",
    "description": "NVDA (NonVisual Desktop Access) is a free 'screen reader' which enables blind and vision impaired people to use computers. It reads the text on the screen in a computerized voice.",
    "homepage": "https://www.nvaccess.org/",
    "license": {
        "identifier": "Freeware",
        "url": "https://github.com/nvaccess/nvda/blob/master/copying.txt"
    },
    "notes": [
        "Add NVDA to startup by running:",
        "reg import \"$dir\\add-startup.reg\""
    ],
    "extract_dir": "$PLUGINSDIR\\app",
    "pre_install": [
        "Rename-Item \"$dir\\nvda_uiAccess.exe\" 'nvda.exe'",
        "Remove-Item \"$dir\\uninstall.exe\""
    ],
    "post_install": [
        "$dirpath = $dir.Replace('\\', '\\\\')",
        "'add-startup.reg', 'remove-startup.reg' | ForEach-Object {",
        "    if (Test-Path \"$bucketsdir\\extras\\scripts\\nvda\\$_\") {",
        "        $content = Get-Content \"$bucketsdir\\extras\\scripts\\nvda\\$_\"",
        "        $content = $content.Replace('$dir', $dirpath)",
        "        if ($global) { $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE') }",
        "        $content | Set-Content -Path \"$dir\\$_\"",
        "    }",
        "}"
    ],
    "pre_uninstall": [
        "$mes = @(\"If you encounter 'file in use' error when uninstalling, please run:\",",
        "    \"reg import `\"$dir\\remove-startup.reg`\"\",",
        "    'Then, restart your PC and uninstall again.'",
        ") -join \"`r`n\"",
        "Write-Host $mes -ForegroundColor Yellow",
        "if ($cmd -eq 'uninstall') { reg import \"$dir\\remove-startup.reg\" }"
    ],
    "url": "https://www.nvaccess.org/files/nvda/releases/2026.1/nvda_2026.1.exe#/dl.7z",
    "hash": "8ddb7dabce62640b465ed2b7bfa63d9ac21f9901ec816bbc1a1f3678bf92be28",
    "bin": [
        "nvda.exe",
        "nvda_noUIAccess.exe"
    ],
    "shortcuts": [
        [
            "nvda.exe",
            "NVDA"
        ],
        [
            "nvda_noUIAccess.exe",
            "NVDA (No UI Access)"
        ]
    ],
    "checkver": {
        "url": "https://www.nvaccess.org/category/news/releases/",
        "regex": "NVDA ([\\d.]+) Released</a>"
    },
    "autoupdate": {
        "url": "https://www.nvaccess.org/files/nvda/releases/$version/nvda_$version.exe#/dl.7z"
    }
}
