Commands for installing Notepad-- 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 ndd.Notepad-- -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ndd.Notepad-- -e --silentwinget uninstall --id ndd.Notepad-- -e --silentBy installer
64-bit · EXE (Inno Setup) · Current user · en-US
Silent install
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"64-bit · EXE (Inno Setup) · Current user · zh-CN
Silent install
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"64-bit · EXE (Inno Setup) · All users · en-US
Silent install
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"64-bit · EXE (Inno Setup) · All users · zh-CN
Silent install
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
Notepad--v3.7.2-plugin-Installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\notepad"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-notepad.ps1
$url = 'https://github.com/cxasm/notepad--/releases/download/notepad-v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-Installer.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 install-notepad.ps1
$url = 'https://gitee.com/cxasm/notepad--/releases/download/v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-Installer.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 install-notepad.ps1
$url = 'https://github.com/cxasm/notepad--/releases/download/notepad-v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-Installer.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 install-notepad.ps1
$url = 'https://gitee.com/cxasm/notepad--/releases/download/v3.7.2/Notepad--v3.7.2-plugin-Installer.exe'
$sha256 = 'DD983460AAE57101F5279F95569B62A5702245D0589DCBF43AD45A1C7166063A'
$file = Join-Path $env:TEMP 'Notepad--v3.7.2-plugin-Installer.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