Ordres per instal·lar ElsterAuthenticator 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 BayerischesLandesamtfuerSteuern.ElsterAuthenticator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BayerischesLandesamtfuerSteuern.ElsterAuthenticator -e --silentwinget uninstall --id BayerischesLandesamtfuerSteuern.ElsterAuthenticator -e --silentPer instal·lador
64 bits · EXE · Usuari actual
Instal·lació silenciosa
ElsterAuthenticator_windows_67_0_0_x64.exe -q -console -Vsys.programGroupAllUsers$Boolean=false -dir ..\..\..\ElsterAuthenticator- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7709-8144-5045-9628
- Carpeta d’instal·lació
- %LOCALAPPDATA%\ElsterAuthenticator
64 bits · EXE · Tots els usuaris
Instal·lació silenciosa
ElsterAuthenticator_windows_67_0_0_x64.exe -q -console- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7709-8144-5045-9628
- Carpeta d’instal·lació
- C:\Program Files\ElsterAuthenticator
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-elsterauthenticator.ps1
$url = 'https://download.elster.de/download/authenticator/ElsterAuthenticator_windows_67_0_0_x64.exe'
$sha256 = 'BE0B491CEC85EE151F03F5BDA1773801EAFF242EE6D9FB6B2F68C1D2BDCA0578'
$file = Join-Path $env:TEMP 'ElsterAuthenticator_windows_67_0_0_x64.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 '-q -console -Vsys.programGroupAllUsers$Boolean=false -dir ..\..\..\ElsterAuthenticator' -Wait install-elsterauthenticator.ps1
$url = 'https://download.elster.de/download/authenticator/ElsterAuthenticator_windows_67_0_0_x64.exe'
$sha256 = 'BE0B491CEC85EE151F03F5BDA1773801EAFF242EE6D9FB6B2F68C1D2BDCA0578'
$file = Join-Path $env:TEMP 'ElsterAuthenticator_windows_67_0_0_x64.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 '-q -console' -Wait