Kommandon för att installera VoiceAttack 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 VoiceAttack.VoiceAttack -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id VoiceAttack.VoiceAttack -e --silentwinget uninstall --id VoiceAttack.VoiceAttack -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
filesend.aspx /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
filesend.aspx /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\voiceattack"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3539875D-3190-4A6A-9FB6-D63CB23205C4}_is1
- Installationsmapp
- %ProgramFiles%\VoiceAttack
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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