Upload Remoteを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ntwind.UploadRemote -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ntwind.UploadRemote -e --silentwinget uninstall --id ntwind.UploadRemote -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー · en-US
サイレントインストール
UploadRemote_2.0.3-win-x64.exe /Sインストール先を指定
UploadRemote_2.0.3-win-x64.exe /S /D=C:\Apps\upload-remote- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Upload Remote
- インストール先フォルダー
- %ProgramFiles%\Upload Remote
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-upload-remote.ps1
$url = 'https://www.ntwind.com/files/UploadRemote_2.0.3-win-x64.exe'
$sha256 = '392C298274AAB1775BF4A6E06A6D3E06DE5C728317AEDE15BC48BC649A129749'
$file = Join-Path $env:TEMP 'UploadRemote_2.0.3-win-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 '/S' -Wait