Skip to content

Per-user install of RStudio on Windows doesn't uninstall cleanly #14122

Closed

Description

@gtritchie

System details

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 have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Jan 12, 2024
  2. gtritchie commented on Jan 12, 2024

    @gtritchie
    MemberAuthor

    I tried using the latest version of NSIS (we're using 3.08, there's a 3.09 release available). No difference.

  3. gtritchie commented on Jan 15, 2024

    @gtritchie
    MemberAuthor

    We'd need to consider using the NSIS MultiUser.nsh to support both per-machine and per-user installs.

    There are at least two versions of this:

    1. Included with NSIS: https://nsis.sourceforge.io/Docs/MultiUser/Readme.html
    2. Alternate version here: https://github.com/Drizin/NsisMultiUser

    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

  4. removed
    new
    on Jan 16, 2024
  5. added this to the Cranberry Hibiscus milestone on Feb 26, 2024
  6. gtritchie commented on Apr 30, 2024

    @gtritchie
    MemberAuthor

    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.

  7. removed their assignment
    on Apr 30, 2024
  8. self-assigned this
    on Jul 9, 2026
  9. added theissue type on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions