Kommandon för att installera SimplNote utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
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 --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
SimplNote-1.1.0-win-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
SimplNote-1.1.0-win-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\simplnote"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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