Commands for installing LegendCTL 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 EvilHumphrey.LegendCTL -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EvilHumphrey.LegendCTL -e --silentwinget uninstall --id EvilHumphrey.LegendCTL -e --silentBy installer
64-bit · EXE (Inno Setup) · All users · en-US
Silent install
ZDUltimateLegend-v2.6.6-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTCustom folder
ZDUltimateLegend-v2.6.6-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\legendctl"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ZDUltimateLegend}_is1
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-legendctl.ps1
$url = 'https://github.com/EvilHumphrey/LegendCTL/releases/download/v2.6.6/ZDUltimateLegend-v2.6.6-Setup.exe'
$sha256 = '15D41F2685B1A36884476080A7C1EEAF1D85AAD5E65F27E53B55BB0B9997DBCA'
$file = Join-Path $env:TEMP 'ZDUltimateLegend-v2.6.6-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