Ordres per instal·lar Windows Application Driver 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 Microsoft.WindowsApplicationDriver -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsApplicationDriver -e --silentwinget uninstall --id Microsoft.WindowsApplicationDriver -e --silentPer instal·lador
32 bits · MSI · en-US
Instal·lació silenciosa
msiexec /i WindowsApplicationDriver_1.2.1.msi /qn /norestartDesar un registre
msiexec /i WindowsApplicationDriver_1.2.1.msi /qn /norestart /l*v "%TEMP%\windows-application-driver-install.log"Desinstal·lar
msiexec /x {087BBF93-D9E3-4D27-BDBE-9C702E0066FC} /qn /norestart- Codi de producte MSI
- {087BBF93-D9E3-4D27-BDBE-9C702E0066FC}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{087BBF93-D9E3-4D27-BDBE-9C702E0066FC}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-windows-application-driver.ps1
$url = 'https://github.com/microsoft/WinAppDriver/releases/download/v1.2.1/WindowsApplicationDriver_1.2.1.msi'
$sha256 = 'A76A8F4E44B29BAD331ACF6B6C248FCC65324F502F28826AD2ACD5F3C80857FE'
$file = Join-Path $env:TEMP 'WindowsApplicationDriver_1.2.1.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait