Commands for installing GNU Midnight Commander 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 GNU.MidnightCommander -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GNU.MidnightCommander -e --silentwinget uninstall --id GNU.MidnightCommander -e --silentBy installer
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
mcwin32-build236-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
mcwin32-build236-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnu-midnight-commander"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CBB4464D-7081-4F1D-9F6D-F5288A4A9B82}_is1
- Install folder
- %ProgramFiles%\Midnight Commander
- DisplayVersion
- 4.8.33 (build: 20250808-236)
32-bit · EXE (Inno Setup) · All users · en-US
Silent install
mcwin32-build236-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
mcwin32-build236-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnu-midnight-commander"- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{CBB4464D-7081-4F1D-9F6D-F5288A4A9B82}_is1
- Install folder
- %ProgramFiles%\Midnight Commander
- DisplayVersion
- 4.8.33 (build: 20250808-236)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-gnu-midnight-commander.ps1
$url = 'https://github.com/adamyg/mcwin32/releases/download/4.8.33.236/mcwin32-build236-x64-setup.exe'
$sha256 = 'C7EDF10402542D334DF7E6FF802E2213D384EAFA949A6FA88D3813BD87A8EE04'
$file = Join-Path $env:TEMP 'mcwin32-build236-x64-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-gnu-midnight-commander.ps1
$url = 'https://github.com/adamyg/mcwin32/releases/download/4.8.33.236/mcwin32-build236-setup.exe'
$sha256 = '023FA2F8F4CAD2D9D793D0ABCA208F2957B03DB8B0651A1AF355B4B4ECB936E4'
$file = Join-Path $env:TEMP 'mcwin32-build236-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait