Kommandon för att installera LegendCTL utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
ZDUltimateLegend-v2.6.6-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTEgen mapp
ZDUltimateLegend-v2.6.6-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\legendctl"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ZDUltimateLegend}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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