Manifests/Anki.json

{
    "Name": "Anki",
    "Source": "https://github.com/ankitects/anki/",
    "Get": {
        "Uri": "https://api.github.com/repos/ankitects/anki/releases/latest",
        "MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
        "MatchFileTypes": "\\.exe$|\\.msi$|\\.tar.bz2$|\\.dmg$",
        "VersionTag": "tag_name"
    },
    "Install": {
        "Setup": "anki*.exe",
        "Preinstall": "",
        "Physical": {
            "Arguments": "/S",
            "PostInstall": [
                "Remove-Item -Path \"$env:Public\\Desktop\\Anki.lnk\" -Force -ErrorAction SilentlyContinue"
            ]
        },
        "Virtual": {
            "Arguments": "/S",
            "PostInstall": [
                "Remove-Item -Path \"$env:Public\\Desktop\\Anki.lnk\" -Force -ErrorAction SilentlyContinue"
            ]
        }
    }
}