Commands for installing Simple Web Server 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 terreng.SimpleWebServer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id terreng.SimpleWebServer -e --silentwinget uninstall --id terreng.SimpleWebServer -e --silentBy installer
64-bit · EXE (NSIS) · en-US
Silent install
Simple-Web-Server-Installer-1.2.17-x64.exe /SCustom folder
Simple-Web-Server-Installer-1.2.17-x64.exe /S /D=C:\Apps\simple-web-server- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\23822fba-268b-5b93-8102-7e5b091f1f0c
ARM64 · EXE (NSIS) · en-US
Silent install
Simple-Web-Server-Installer-1.2.17-arm64.exe /SCustom folder
Simple-Web-Server-Installer-1.2.17-arm64.exe /S /D=C:\Apps\simple-web-server- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\23822fba-268b-5b93-8102-7e5b091f1f0c
32-bit · EXE (NSIS) · en-US
Silent install
Simple-Web-Server-Installer-1.2.17-ia32.exe /SCustom folder
Simple-Web-Server-Installer-1.2.17-ia32.exe /S /D=C:\Apps\simple-web-server- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\23822fba-268b-5b93-8102-7e5b091f1f0c
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-simple-web-server.ps1
$url = 'https://github.com/terreng/simple-web-server/releases/download/v1.2.17/Simple-Web-Server-Installer-1.2.17-x64.exe'
$sha256 = 'A52C9CAB4513BA2831D2982CEC9D032E34CC2DF44A996E7D90E746D474390C3D'
$file = Join-Path $env:TEMP 'Simple-Web-Server-Installer-1.2.17-x64.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 install-simple-web-server.ps1
$url = 'https://github.com/terreng/simple-web-server/releases/download/v1.2.17/Simple-Web-Server-Installer-1.2.17-arm64.exe'
$sha256 = 'A31530A7132B0EC89F34F98AD1EF57EB174A8E4E3C4C3D3971441E7C31645D04'
$file = Join-Path $env:TEMP 'Simple-Web-Server-Installer-1.2.17-arm64.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 install-simple-web-server.ps1
$url = 'https://github.com/terreng/simple-web-server/releases/download/v1.2.17/Simple-Web-Server-Installer-1.2.17-ia32.exe'
$sha256 = '859CBDDEEEFC2306857C85569D6CCE99E866B02290B244AE3CB16E1404CE5701'
$file = Join-Path $env:TEMP 'Simple-Web-Server-Installer-1.2.17-ia32.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