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

Repackaging tips and silent install information for RStudio RStudio 1.14.17.17. 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.

About

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

RStudio

Application Name

RStudio

Application Version

1.14.17.17

Download Link

https://www.rstudio.com/

License Needed

Yes

Vendor Install

Installation Type

Setup.exe

Architecture

x64

Description

Also a ZipFile

Application Configuration/Settings

Registry

File

AD/GPO

AAD/GPO

User Environment Data

Registry

File

Other

Infrastructure Dependencies

Description

ODBC

Connection Name

Driver

Parameters

Setup.exe parameters

Exe based R language Installer
/SP- /SILENT /SURPRESSMSGBOXES
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

MSI

Unknown

MSIX

Issues known
See below in Repackaging Tips

App-V

Unknown

ThinApp

Unknown

Citrix App Layer

Unknown

VMWare App Volumes

Unknown

Other

Unknown

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.

Comments

0 Comments

Submit a Comment

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

Free Download

Upcoming Events

september 2024

16sepAll Day19Workplace Ninja Summit 2024

october 2024

11oct8:00 am7:00 pmAppManagEvent 2024

Upcoming Courses

april 2024

15apr(apr 15)9:00 am19(apr 19)4:30 pmUSA: Learning MSI Projects with InstallShield 2023

22apr(apr 22)9:00 am26(apr 26)4:30 pm EMEA: Application Packaging with AdminStudio 2023

may 2024

13may(may 13)9:00 am17(may 17)5:00 pmIT Pro Masters Packaging for MSIXMasters Level

june 2024

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

10jun(jun 10)9:00 am14(jun 14)4:30 pmEMEA: Learning MSI Projects with InstallShield 2023

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