Rnpを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id r12f.Rnp -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id r12f.Rnp -e --silentwinget uninstall --id r12f.Rnp -e --silentインストーラー別
64ビット · MSIX · 現在のユーザー · en-US
サイレントインストール
Add-AppxPackage -Path rnp.0.1.146.main.windows.x64.msixアンインストール
Get-AppxPackage -Name R12f.R12f.Rnp | Remove-AppxPackageARM64 · MSIX · 現在のユーザー · en-US
サイレントインストール
Add-AppxPackage -Path rnp.0.1.146.main.windows.arm64.msixアンインストール
Get-AppxPackage -Name R12f.R12f.Rnp | Remove-AppxPackage32ビット · MSIX · 現在のユーザー · en-US
サイレントインストール
Add-AppxPackage -Path rnp.0.1.146.main.windows.x86.msixアンインストール
Get-AppxPackage -Name R12f.R12f.Rnp | Remove-AppxPackagePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-rnp.ps1
$url = 'https://github.com/r12f/rnp/releases/download/0.1.146.main/rnp.0.1.146.main.windows.x64.msix'
$sha256 = 'FCDC59F7453920A3C5F08B37A162E184A28CF1110686551D6920F518F42509B3'
$file = Join-Path $env:TEMP 'rnp.0.1.146.main.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-rnp.ps1
$url = 'https://github.com/r12f/rnp/releases/download/0.1.146.main/rnp.0.1.146.main.windows.arm64.msix'
$sha256 = 'F8514BFBD9E834C862A9EFC9A6E15DBE0B8070FE5DCF62E86A642D3361E99B2D'
$file = Join-Path $env:TEMP 'rnp.0.1.146.main.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-rnp.ps1
$url = 'https://github.com/r12f/rnp/releases/download/0.1.146.main/rnp.0.1.146.main.windows.x86.msix'
$sha256 = 'FC969BA6CA79CAE1D30880FC7A50BE9CF86C649081DD9F0746DA6A7D64E26888'
$file = Join-Path $env:TEMP 'rnp.0.1.146.main.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