Remotlyを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id MirillisLtd.Remotly -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MirillisLtd.Remotly -e --silentwinget uninstall --id MirillisLtd.Remotly -e --silentインストーラー別
32ビット · EXE(NSIS)
サイレントインストール
remotly_pc_1_36_2_setup.exe /Sインストール先を指定
remotly_pc_1_36_2_setup.exe /S /D=C:\Apps\remotlyPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-remotly.ps1
$url = 'https://downloads.mirillis.com/files/remotly_pc_1_36_2_setup.exe'
$sha256 = 'C0E6CFC846B27331162663D4EC0D4A7839B8BDE323944BAF4FEF09F06A6786A0'
$file = Join-Path $env:TEMP 'remotly_pc_1_36_2_setup.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 '/S' -Wait