You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Per-user install of RStudio on Windows doesn't uninstall cleanly #14122
RStudio Edition : Desktop
RStudio Version : 2023.12.0+369 (likely a problem with any version we've ever released)
OS Version : Windows-11
R Version : Any
Steps to reproduce the problem
Install RStudio Desktop on Windows, per-user. The setup wizard doesn't provide this option, but it can be forced, e.g. #8598 (comment). Customers have reported that this also happens on their domain-connected PCs, likely due to a group policy (though I haven't hunted down the exact group policy).
A per-user install won't ask for elevation (i.e. no UAC prompt).
The program bits are installed to %localappdata%\Programs\RStudio
The start menu entry is at %appdata%\Microsoft\Windows\Start Menu\Programs\RStudio
The add/remove data is in the registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\RStudio
Now uninstall via Add/Remove programs.
Describe the problem in detail
First, you get prompted to elevate (UAC), which shouldn't be necessary. If you do that and proceed, the program bits are removed, but the start menu entry and the add/remove data is not removed.
So now there is a broken add/remove entry for RStudio, and a broken Start Menu entry. Only way to recover is to manually delete these.
Describe the behavior you expected
Uninstalling a per-user install shouldn't require UAC, and it should fully clean up after itself.
I'm moving this out of Cranberry Hibiscus. This has never worked, and knowing how much fun NSIS scripting is, I estimate it could take several days to implement (including reworking some of the setup UI) and will require a significant amount of manual testing.
Activity
gtritchie commentedon Jan 12, 2024
I tried using the latest version of NSIS (we're using 3.08, there's a 3.09 release available). No difference.
gtritchie commentedon Jan 15, 2024
We'd need to consider using the NSIS
MultiUser.nshto support both per-machine and per-user installs.There are at least two versions of this:
If we want to show UI for selecting which mode to use, we'd also need to update the installer to use "Modern UI version 2"; we currently use the older "Modern UI". https://nsis.sourceforge.io/Docs/Chapter2.html#tutmodernui
gtritchie commentedon Apr 30, 2024
I'm moving this out of Cranberry Hibiscus. This has never worked, and knowing how much fun NSIS scripting is, I estimate it could take several days to implement (including reworking some of the setup UI) and will require a significant amount of manual testing.
Windows installer: add per-user install option (no elevation) (#18167)