DivoomGatewayを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id r12f.DivoomGateway -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id r12f.DivoomGateway -e --silentwinget uninstall --id r12f.DivoomGateway -e --silentインストーラー別
64ビット · MSIX
サイレントインストール
Add-AppxPackage -Path divoom-gateway.0.1.42.windows.x64.msixアンインストール
Get-AppxPackage -Name R12f.R12f.DivoomGateway | Remove-AppxPackageARM64 · MSIX
サイレントインストール
Add-AppxPackage -Path divoom-gateway.0.1.42.windows.arm64.msixアンインストール
Get-AppxPackage -Name R12f.R12f.DivoomGateway | Remove-AppxPackage32ビット · MSIX
サイレントインストール
Add-AppxPackage -Path divoom-gateway.0.1.42.windows.x86.msixアンインストール
Get-AppxPackage -Name R12f.R12f.DivoomGateway | Remove-AppxPackagePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-divoomgateway.ps1
$url = 'https://github.com/r12f/divoom/releases/download/0.1.42/divoom-gateway.0.1.42.windows.x64.msix'
$sha256 = '3C76B4F9B0539A6C617E424A333F857B61402BD001FCECB8E325D0134CD3C16A'
$file = Join-Path $env:TEMP 'divoom-gateway.0.1.42.windows.x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-divoomgateway.ps1
$url = 'https://github.com/r12f/divoom/releases/download/0.1.42/divoom-gateway.0.1.42.windows.arm64.msix'
$sha256 = 'ADD9853B88D1F5E1ECC5A44D9C1C9A0CE1089F730EEEB962F8AD0BA5F041092C'
$file = Join-Path $env:TEMP 'divoom-gateway.0.1.42.windows.arm64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-divoomgateway.ps1
$url = 'https://github.com/r12f/divoom/releases/download/0.1.42/divoom-gateway.0.1.42.windows.x86.msix'
$sha256 = '6FCEC3042ECC9096A295BA1B2459C2957D82C34D503E028679D72B9F98F481D3'
$file = Join-Path $env:TEMP 'divoom-gateway.0.1.42.windows.x86.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file