Commands for installing Notepad2-mod without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
Notepad2-mod.4.2.25.998.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Notepad2-mod.4.2.25.998.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad2-mod"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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