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


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 *

Recent App Tips

Upcoming Events

september 2023

27sepAll Day29Workplace Ninja Summit 2023

october 2023

06oct8:00 am7:00 pmAppManagEvent 2023

Upcoming Courses

september 2023

18sep(sep 18)9:00 am22(sep 22)4:30 pmUSA: Learning MSI Projects with InstallShield 2023

25sep(sep 25)9:00 am29(sep 29)4:30 pmEMEA: Learning MSI Projects with InstallShield 2023

october 2023

09octAll Day13Packaging in App-V & MSIX by Tim Mangan

november 2023

06nov(nov 6)9:00 am10(nov 10)4:30 pmEMEA: Application Packaging with AdminStudio 2023

13nov(nov 13)9:00 am17(nov 17)4:30 pmUSA: Application Packaging with AdminStudio 2023

27nov01decUSA: Advanced AdminStudio and Repackaging Workshop