Polecenia do instalacji programu GitNote bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez 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 --silentWedług instalatora
64-bit · EXE (NSIS) · Wszyscy użytkownicy
Cicha instalacja
GitNote_setup_3.1.0.exe /SWłasny folder
GitNote_setup_3.1.0.exe /S /D=C:\Apps\gitnotePowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
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