Kommandon för att installera Notepad2-mod 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 Notepad2mod.Notepad2mod -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Notepad2mod.Notepad2mod -e --silentwinget uninstall --id Notepad2mod.Notepad2mod -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
Notepad2-mod.4.2.25.998.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
Notepad2-mod.4.2.25.998.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad2-mod"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-notepad2-mod.ps1
$url = 'https://github.com/XhmikosR/notepad2-mod/releases/download/4.2.25.998/Notepad2-mod.4.2.25.998.exe'
$sha256 = 'EBD0BFD738BA9F07598369D09C91241807C94FE63F6629A0A9C66F2D66D3AED9'
$file = Join-Path $env:TEMP 'Notepad2-mod.4.2.25.998.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