Commands for installing rpkg without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id AlbersonMiranda.rpkg -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AlbersonMiranda.rpkg -e --silentwinget uninstall --id AlbersonMiranda.rpkg -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i rpkg-x86_64-pc-windows-msvc.msi /qn /norestartWrite a log
msiexec /i rpkg-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\rpkg-install.log"Uninstall
msiexec /x {0F7E6752-FD5A-4D3E-8DB8-8AE8EB8CC2E5} /qn /norestart- MSI product code
- {0F7E6752-FD5A-4D3E-8DB8-8AE8EB8CC2E5}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0F7E6752-FD5A-4D3E-8DB8-8AE8EB8CC2E5}
- UpgradeCode
- {74BAE8E2-CE67-41EB-8EED-63B1D74E9C1B}
- Install folder
- %ProgramFiles%/rpkg/bin
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-rpkg.ps1
$url = 'https://github.com/albersonmiranda/rip/releases/download/v0.3.2/rpkg-x86_64-pc-windows-msvc.msi'
$sha256 = 'D64841786518380B1A1C47284E309DEA5EB0865C45CDC4217CDD7FD4EB105CC6'
$file = Join-Path $env:TEMP 'rpkg-x86_64-pc-windows-msvc.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