RStudio RStudio
RStudio Icon
Author: Tim Mangan
Date: October 20, 2022

Repackaging tips and silent install information for RStudio RStudio This App Tip provides comprehensive details for conducting a silent installation of RStudio. It includes additional insights, such as user environment specifics, extra installation parameters, and repackaging tips.


RStudio is an integrated development environment for R, a programming language for statistical computing and graphics. It is available in two formats: RStudio Desktop is a regular desktop application while RStudio Server runs on a remote server and allows accessing RStudio using a web browser.

General Information

Vendor Information


Application Name


Application Version

Download Link

License Needed


Vendor Install

Installation Type



Also a ZipFile

Application Configuration/Settings





User Environment Data




Infrastructure Dependencies



Connection Name



Setup.exe parameters

Exe based R language Installer
The application has file-based configuration that is not generally used.

Exe based installation of RStudio
'/S' for a silent installation.

ZIP based installation of Rstudio
Unpack to %Program Files%\R

MSI Public Properties

Installation Commands

Silent Install Command

Silent Uninstall Command

Repackaging Score




Issues known
See below in Repackaging Tips





Citrix App Layer


VMWare App Volumes




Repackaging Tips

Preconfiguration is possible by grabbing two files in AppData/Roaming/RStudio for use in your installation script.
crash-handler.conf. Can disable sending crash logs to the internet. Launch app to create the initial file.
rstudio-prefs.json. Can disable updates and/or set other settings. Use the Tools menu Global Settings to create the initial file.
The application installs into program files.
There are two shortcuts installed, one for 32-bit and one for 64-bit. They both point to an exe named RGui.exe in different folders.
There is a new FTA (.RData) that has a shell integration verb command.
There are no shell extensions, protocol handlers, or services.

Packaging R and RStudio for MSIX
The software was packaged on Windows 10 21H2 using Microsoft MSIX Packaging Tool 1.2022.512 with the PSF using TMEditX.
The PSfLauncher is needed because there are both 32 and 64-bit exes with the same name that needs a shortcut.
Due to file-based configurations for the R language part of this package, the FRF is also needed.
The application attempts to install an FTA on .RData with a shell integration verb command using the same 'open' verb to start the 32 and 64 bit RGui.exe, one on .rdata and other on .RData. MSIX cannot handle this and you must choose one or the other, but usually, this means the 64 bit version.

The RStudio app uses a secondary process, rsession.exe, a 64-bit console application for which attempting to inject the PsfRuntime causes the app to fail. Therefore the config.json file needs to not include a process block to inject the PSF. As there are a large number of exe's in the package, it can be easier to add a process entry listing no injections for this exe, and having a default .* regex string to cover all other processes and add the FRF that way.

For some reason, rsession.exe fails to find the required dll files (like R.dll) from the R Language. There are two copies of the R dlls, one for x86 and one for x64 and rsession needs the x64 ones. Adding in a LoadSearchOrder entry into the AppXManifest file for the x64 R Language Dlls solves this issue.

Packaging with MSIX Packaging Tool and fixing the package with TMEditX One way to create a good package is to package using the Microsoft MSIX Packaging Tool and then fixing the package using TMEditX. Other tooling could potentially also create a satisfactory package, but this is the technique known to work. MMPT 2022.330 and TMEditX 2.3 were used in this documented success. Package up using the Microsoft MSIX Packaging Tool. Normal current best practices for using this tool are sufficient.
Open the resulting package in TMEditX.
On the Analysis Page, first perform any package cleanup.
Then Add the PSF.
In PsfLauncher, select the Exclude Console Apps option.
Select the File Redirection Fixup with default options.
Back on the Analysis page, ignore the manifest fixup for FileTypeAssociation for .RData due to x86/x64 issues in the manifest schema.
Select the fixup for the missing Fonts.
On the C.Files Tab, locate the R language folder for the x64 dlls for the version of R launguage, for example VFS/ProgramFilesX64/R/R-4.1.0/bin/x64 and right-click to select the Add folder to loaderSearhOrder menu option.
Save the package.



Submit a Comment

Your email address will not be published. Required fields are marked *

Free Download

Free Download

Upcoming Events

july 2024

02jul8:30 am5:30 pmManaged Services Summit Benelux 2024

september 2024

16sepAll Day19Workplace Ninja Summit 2024

october 2024

11oct8:00 am7:00 pmAppManagEvent 2024

Upcoming Courses

june 2024

03jun(jun 3)1:00 pm13(jun 13)5:00 pmIT Pro Masters Packaging for MSIX

24jun(jun 24)9:00 am28(jun 28)4:30 pmUSA: Application Packaging with AdminStudio 2023

july 2024

08jul(jul 8)9:00 am12(jul 12)4:30 pmUSA: Learning MSI Projects with InstallShield 2023

15jul(jul 15)9:00 am19(jul 19)4:30 pmEMEA: Application Packaging with AdminStudio 2023