Befehle, um Notepad2-mod ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit 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 --silentNach Installer
64-Bit · EXE (Inno Setup) · Alle Benutzer · en-US
Stille Installation
Notepad2-mod.4.2.25.998.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Eigener Ordner
Notepad2-mod.4.2.25.998.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad2-mod"PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
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