SwitchHunt / catalog
R for Windows - Silent Install Switch
The hand-curated silent install command for R for Windows on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.
Silent install command
installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS Silent uninstall command
"%ProgramFiles%\R\R-4.6.1\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART Replace installer.exe with the actual installer filename (or its full path).
Notes & gotchas
Inno Setup. /ALLUSERS puts it in Program Files for everyone. Each R version installs into its own R-x.y.z folder and leaves earlier versions in place, so the uninstall path changes with every release. RStudio Desktop is a separate install that failed as SYSTEM in the lab (exit 666660 from its elevation plugin), so it is not listed.
Lab-tested
On 2026-10-19 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against R for Windows 4.6.1, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.
FAQ
What is the silent install command for R for Windows?
Run: installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /ALLUSERS
How do I silently uninstall R for Windows?
Run: "%ProgramFiles%\R\R-4.6.1\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART
Any gotchas installing R for Windows unattended?
Inno Setup. /ALLUSERS puts it in Program Files for everyone. Each R version installs into its own R-x.y.z folder and leaves earlier versions in place, so the uninstall path changes with every release. RStudio Desktop is a separate install that failed as SYSTEM in the lab (exit 666660 from its elevation plugin), so it is not listed.
Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.