Kommandoer til at installere SimplNote uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med winget
PowerShell
winget install --id EmDiSoftware.SimplNote -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EmDiSoftware.SimplNote -e --silentwinget uninstall --id EmDiSoftware.SimplNote -e --silentPr. installationsfil
64-bit · EXE (Inno Setup) · Aktuel bruger
Lydløs installation
SimplNote-1.1.0-win-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
SimplNote-1.1.0-win-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\simplnote"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-simplnote.ps1
$url = 'https://github.com/AdamAnomatik/SimplNote-Releases/releases/download/v1.1.0/SimplNote-1.1.0-win-x64-setup.exe'
$sha256 = '4800188D8C422EA70726A1693E458740D6B9B6AC50BC35117B1BA2E52A55C49A'
$file = Join-Path $env:TEMP 'SimplNote-1.1.0-win-x64-setup.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait