Commands for installing HEC-EFM Plotter 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 HydrologicEngineeringCenter.HEC-EFMPlotter -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id HydrologicEngineeringCenter.HEC-EFMPlotter -e --silentwinget uninstall --id HydrologicEngineeringCenter.HEC-EFMPlotter -e --silentBy installer
32-bit · EXE
Silent install
HEC-EFM_Plotter_40_Setup.exe /S /v/qnPowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-hec-efm-plotter.ps1
$url = 'https://www.hec.usace.army.mil/software/hec-efm-plotter/downloads/HEC-EFM_Plotter_40_Setup.exe'
$sha256 = '84FD18DE943C921F03D8F39F9747D5BE6A57FA9A9C791965946089ED11FB61C9'
$file = Join-Path $env:TEMP 'HEC-EFM_Plotter_40_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 /v/qn' -Wait