Commands for installing GitNote without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id zhaopengme.gitnote -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id zhaopengme.gitnote -e --silentwinget uninstall --id zhaopengme.gitnote -e --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
GitNote_setup_3.1.0.exe /SCustom folder
GitNote_setup_3.1.0.exe /S /D=C:\Apps\gitnotePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-gitnote.ps1
$url = 'https://github.com/zhaopengme/gitnote/releases/download/3.1.0/GitNote_setup_3.1.0.exe'
$sha256 = '8DEAE769C10F19419FE528B95CB9EE3D962C3CBFCAE9A4ACE17E84F15D36E31F'
$file = Join-Path $env:TEMP 'GitNote_setup_3.1.0.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait