Ordres per instal·lar NetSpeedTray 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 erez-c137.NetSpeedTray -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id erez-c137.NetSpeedTray -e --silentwinget uninstall --id erez-c137.NetSpeedTray -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
NetSpeedTray-2.1.7-x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
NetSpeedTray-2.1.7-x64-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\netspeedtray"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D3A32B89-C533-4F2C-9F87-23B2395B5B89}}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\NetSpeedTray
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-netspeedtray.ps1
$url = 'https://github.com/erez-c137/NetSpeedTray/releases/download/v2.1.7/NetSpeedTray-2.1.7-x64-Setup.exe'
$sha256 = 'C28072DAA74B547FD3DBD5F6D6F7358C97FFF78C568627ADDCE73F52A25EB2BE'
$file = Join-Path $env:TEMP 'NetSpeedTray-2.1.7-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