Ordres per instal·lar The 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 Talyh.The -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Talyh.The -e --silentwinget uninstall --id Talyh.The -e --silentPer instal·lador
64 bits · EXE (WiX Burn) · Tots els usuaris
Instal·lació silenciosa
The-1.5.0-setup.exe /quiet /norestartDesinstal·lar
msiexec /x {22BD5BFD-37A0-44B2-887D-CE7093F7A9E9} /qn /norestart- Codi de producte MSI
- {22BD5BFD-37A0-44B2-887D-CE7093F7A9E9}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{22BD5BFD-37A0-44B2-887D-CE7093F7A9E9}
- UpgradeCode
- {19C593D6-AD43-400E-8AC5-BCC470830C09}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-the.ps1
$url = 'https://downloads.talyh.com/releases/1.5.0/The-1.5.0-setup.exe'
$sha256 = '5E400826CBC9132F375BCE3AF94E2EC7A8DFD40E90BF7CA84D120807730A2856'
$file = Join-Path $env:TEMP 'The-1.5.0-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 '/quiet /norestart' -Wait