Commands for installing LANCommander 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
winget install --id LANCommander.Server -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LANCommander.Server -e --silentwinget uninstall --id LANCommander.Server -e --silentBy installer
64-bit · EXE (Inno Setup) · All users · en-US
LANCommander.Server-2.1.17-x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-LANCommander.Server-2.1.17-x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lancommander-server"ARM64 · EXE (Inno Setup) · All users · en-US
LANCommander.Server-2.1.17-arm64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-LANCommander.Server-2.1.17-arm64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\lancommander-server"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
$url = 'https://github.com/LANCommander/LANCommander/releases/download/v2.1.17/LANCommander.Server-2.1.17-x64-Setup.exe'
$sha256 = 'CC458CC857E8F37B3F7E82ED182A108A3287B44EB0B98A296212C21304CE5144'
$file = Join-Path $env:TEMP 'LANCommander.Server-2.1.17-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 $url = 'https://github.com/LANCommander/LANCommander/releases/download/v2.1.17/LANCommander.Server-2.1.17-arm64-Setup.exe'
$sha256 = '026B617A9C76285837455D07CECCDF35F056C1CC8FC81A3627D4745F6395A8E6'
$file = Join-Path $env:TEMP 'LANCommander.Server-2.1.17-arm64-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