Ordres per instal·lar Rnp sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · MSIX · Usuari actual · en-US
Instal·lació silenciosa
Add-AppxPackage -Path rnp.0.1.146.main.windows.x64.msixDesinstal·lar
Get-AppxPackage -Name R12f.R12f.Rnp | Remove-AppxPackageARM64 · MSIX · Usuari actual · en-US
Instal·lació silenciosa
Add-AppxPackage -Path rnp.0.1.146.main.windows.arm64.msixDesinstal·lar
Get-AppxPackage -Name R12f.R12f.Rnp | Remove-AppxPackage32 bits · MSIX · Usuari actual · en-US
Instal·lació silenciosa
Add-AppxPackage -Path rnp.0.1.146.main.windows.x86.msixDesinstal·lar
Get-AppxPackage -Name R12f.R12f.Rnp | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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