Les commandes pour installer VocalCode sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
PowerShell
winget install --id DamingWu.VocalCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DamingWu.VocalCode -e --silentwinget uninstall --id DamingWu.VocalCode -e --silentPar installateur
64 bits · EXE (Inno Setup) · Utilisateur actuel
Installation silencieuse
VocalCodeSetup-1.0.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Dossier personnalisé
VocalCodeSetup-1.0.13.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\vocalcode"PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-vocalcode.ps1
$url = 'https://github.com/wudaming00/vocalcode-docs/releases/download/v1.0.13/VocalCodeSetup-1.0.13.exe'
$sha256 = 'B33DEB0C6E5383D778E95D25436FB3C55E40BAE76C67D9887224C96EBA27F6E8'
$file = Join-Path $env:TEMP 'VocalCodeSetup-1.0.13.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