Commands for installing NK2Edit 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 NirSoft.NK2Edit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id NirSoft.NK2Edit -e --silentwinget uninstall --id NirSoft.NK2Edit -e --silentBy installer
64-bit · ZIP · en-US
No installation needed (portable)
32-bit · EXE (NSIS) · All users · en-US
Silent install
nk2edit_setup.exe /SCustom folder
nk2edit_setup.exe /S /D=C:\Apps\nk2edit- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\NirSoft NK2Edit
- Install folder
- %ProgramFiles(x86)%\NirSoft\NK2Edit
32-bit · ZIP · en-US
No installation needed (portable)
Any CPU · ZIP · en-US
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-nk2edit.ps1
$url = 'https://www.nirsoft.net/utils/nk2edit_setup.exe'
$sha256 = '835B55F8323C314D3BD8BB935B98D2443628C3AC6E974F5AD95C9D02EDBAF262'
$file = Join-Path $env:TEMP 'nk2edit_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 '/S' -Wait