Komandat për të instaluar Code Notes pa pyetje, për ta hequr sërish dhe për ta zbuluar nga mjetet e shpërndarjes. Një komandë shfaqet vetëm kur është e sigurt: nga manifesti ose nga vlera e paracaktuar e dokumentuar e teknologjisë së instaluesit.
Udhëzues i lidhur: Parametrat e instalimit të heshtur: MSI, NSIS, Inno · Çinstalimi i një programi me regjistrin ose PowerShell
Me winget
PowerShell
winget install --id lauthieb.code-notes -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id lauthieb.code-notes -e --silentwinget uninstall --id lauthieb.code-notes -e --silentSipas instaluesit
64-bit · EXE (NSIS) · Përdoruesi aktual
Instalim i heshtur
code-notes-1.2.4.exe /SDosje tjetër
code-notes-1.2.4.exe /S /D=C:\Apps\code-notesPowerShell: shkarko, verifiko, instalo
Shkarkon skedarin zyrtar, kontrollon SHA256 dhe e instalon në heshtje.
install-code-notes.ps1
$url = 'https://github.com/lauthieb/code-notes/releases/download/1.2.4/code-notes-1.2.4.exe'
$sha256 = '14371CBDD7E406D6946E2E7912739FAE032DBE4E40B83A9ED8B6A9D93DC2F567'
$file = Join-Path $env:TEMP 'code-notes-1.2.4.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