Commands for installing wsly 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 MihaiValentin.wsly -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MihaiValentin.wsly -e --silentwinget uninstall --id MihaiValentin.wsly -e --silentBy installer
Any CPU · EXE (Inno Setup) · Current user
Silent install
wsly-1.1.2-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTCustom folder
wsly-1.1.2-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\wsly"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-wsly.ps1
$url = 'https://github.com/mihai-valentin/wsly/releases/download/1.1.2/wsly-1.1.2-setup.exe'
$sha256 = '32D5D448ABC306ADE45860BC8170561C488B191D7A2A1AFC424AD1FFE7C629F2'
$file = Join-Path $env:TEMP 'wsly-1.1.2-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' -Wait