Ordres per instal·lar VoiceAttack 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 VoiceAttack.VoiceAttack -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id VoiceAttack.VoiceAttack -e --silentwinget uninstall --id VoiceAttack.VoiceAttack -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
filesend.aspx /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
filesend.aspx /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\voiceattack"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3539875D-3190-4A6A-9FB6-D63CB23205C4}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\VoiceAttack
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-voiceattack.ps1
$url = 'https://voiceattack.com/filesend.aspx?id=voiceattackinstaller_2.1.7.0.exe'
$sha256 = '7B871749D64ECF33905603BFCD77CA87322FC6AAFF1B0C2ECCFF40440AEC280F'
$file = Join-Path $env:TEMP 'filesend.aspx'
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