Uninstalling R & RStudio



To silently uninstall R 3.5.2 create a batch file to run the uninstall process silently



rem @echo off

rem uninstall R


IF EXIST C:\"Program Files"\R\R-3.5.2\unins000.exe (

C:

cd \"Program Files"\R\R-3.5.2

unins000.exe /SILENT

)


IF EXIST C:\"Program Files (x86)"\R\R-3.5.2\unins000.exe (

C:

cd \"Program Files (x86)"\R\R-3.5.2

unins000.exe /SILENT

)




To silently uninstall RStudio create a batch file to run the uninstall process silently



rem @echo off

rem uninstall RStudio


IF EXIST C:\"Program Files"\Rstudio\uninstall.exe (

C:

cd \"Program Files"\Rstudio

uninstall.exe /S

)


IF EXIST C:\"Program Files (x86)"\Rstudio\uninstall.exe (

C:

cd \"Program Files (x86)"\Rstudio

uninstall.exe /S

)

exit



Create a Third Party Template to run the batch file to Uninstall R 3.5.2

(Remember to use the Copy these files locally when deploy with UAC authentication)





Create a Third Party Template to run the batch file to Uninstall RStudio

(Remember to use the Copy these files locally when deploy with UAC authentication)