RSSHを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id shihuili1218.RSSH -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id shihuili1218.RSSH -e --silentwinget uninstall --id shihuili1218.RSSH -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
rssh-0.3.1-windows-x86_64-setup.exe /Sインストール先を指定
rssh-0.3.1-windows-x86_64-setup.exe /S /D=C:\Apps\rssh- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RSSH
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i rssh-0.3.1-windows-x86_64.msi /qn /norestartログを出力
msiexec /i rssh-0.3.1-windows-x86_64.msi /qn /norestart /l*v "%TEMP%\rssh-install.log"アンインストール
msiexec /x {558E95B2-DEA1-4297-BE8D-9E2254FA1B65} /qn /norestart- MSIプロダクトコード
- {558E95B2-DEA1-4297-BE8D-9E2254FA1B65}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{558E95B2-DEA1-4297-BE8D-9E2254FA1B65}
- UpgradeCode
- {B6C933A1-D0E0-54CF-BC3F-91434378DEF3}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-rssh.ps1
$url = 'https://github.com/rssh-org/rssh/releases/download/v0.3.1/rssh-0.3.1-windows-x86_64-setup.exe'
$sha256 = 'CC7F198864934649B7FCA787226D0937EEDBF818C643411FA1FBACBC7013AD3A'
$file = Join-Path $env:TEMP 'rssh-0.3.1-windows-x86_64-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 install-rssh.ps1
$url = 'https://github.com/rssh-org/rssh/releases/download/v0.3.1/rssh-0.3.1-windows-x86_64.msi'
$sha256 = '0E6661CFEB4AB27B8ACBD64F60E9C40D2B2E3D95CCD9A2C81C2BA64C1B494F85'
$file = Join-Path $env:TEMP 'rssh-0.3.1-windows-x86_64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait