Ordres per instal·lar LegendCTL sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
ZDUltimateLegend-v2.6.4-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTARTUna altra carpeta
ZDUltimateLegend-v2.6.4-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /DIR="C:\Apps\legendctl"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ZDUltimateLegend}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-legendctl.ps1
$url = 'https://github.com/EvilHumphrey/LegendCTL/releases/download/v2.6.4/ZDUltimateLegend-v2.6.4-Setup.exe'
$sha256 = 'AA09510A25A1CB93F605B9F241E304239B248118F1AEF1F193AE8C305C625D6D'
$file = Join-Path $env:TEMP 'ZDUltimateLegend-v2.6.4-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