Ordres per instal·lar eM Client 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 eMClient.eMClient -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id eMClient.eMClient -e --silentwinget uninstall --id eMClient.eMClient -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path setup.msixbundleDesinstal·lar
Get-AppxPackage -Name eMClient.20054CA46072C | Remove-AppxPackage- Carpeta d’instal·lació
- %ProgramFiles%\WindowsApps\eMClient.20054CA46072C_11.0.1577.0_x64__veq4nz3ze5v72
ARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path setup.msixbundleDesinstal·lar
Get-AppxPackage -Name eMClient.20054CA46072C | Remove-AppxPackage- Carpeta d’instal·lació
- %ProgramFiles%\WindowsApps\eMClient.20054CA46072C_11.0.1577.0_arm64__veq4nz3ze5v72
32 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path setup.msixbundleDesinstal·lar
Get-AppxPackage -Name eMClient.20054CA46072C | Remove-AppxPackage- Carpeta d’instal·lació
- %ProgramFiles%\WindowsApps\eMClient.20054CA46072C_11.0.1577.0_x86__veq4nz3ze5v72
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-em-client.ps1
$url = 'https://cdn-dist.emclient.com/dist/v11.0.1577/setup.msixbundle'
$sha256 = 'E40F6D7EF2D93FE6FF98A2204E5685673E103D838B985B8A7D70C50A554708B4'
$file = Join-Path $env:TEMP 'setup.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-em-client.ps1
$url = 'https://cdn-dist.emclient.com/dist/v11.0.1577/setup.msixbundle'
$sha256 = 'E40F6D7EF2D93FE6FF98A2204E5685673E103D838B985B8A7D70C50A554708B4'
$file = Join-Path $env:TEMP 'setup.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-em-client.ps1
$url = 'https://cdn-dist.emclient.com/dist/v11.0.1577/setup.msixbundle'
$sha256 = 'E40F6D7EF2D93FE6FF98A2204E5685673E103D838B985B8A7D70C50A554708B4'
$file = Join-Path $env:TEMP 'setup.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file