diff --git a/R.xml b/R.xml new file mode 100755 index 0000000000000000000000000000000000000000..def83f4694a206449ccb94ac79cf094ad034ad3f --- /dev/null +++ b/R.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<packages> + <package id="R" name="R" revision="%version%.1" priority="0" reboot="false"> + <check type="uninstall" condition="exists" path="R for Windows %version%" /> + + <!-- https://cran.r-project.org/bin/windows/base/ --> + + <variable name="version" value="3.6.2" /> + + <!-- automatically try to uninstall earlier versions, but ignore errors due to them not being present --> + <!-- please keep appending to this list as you add new versions --> + <install cmd='cmd /c if exist "%programfiles%\R\R-3.2.5\unins000.exe" "%programfiles%\R\R-3.2.5\unins000.exe" /verysilent'><exit code="any" /></install> + <install cmd='cmd /c if exist "%programfiles%\R\R-3.5.1\unins000.exe" "%programfiles%\R\R-3.5.1\unins000.exe" /verysilent'><exit code="any" /></install> + <install cmd='cmd /c if exist "%programfiles%\R\R-3.6.1\unins000.exe" "%programfiles%\R\R-3.6.1\unins000.exe" /verysilent'><exit code="any" /></install> + + <install cmd='%SOFTWARE%\R\r-%version%-win.exe /verysilent' /> + + <remove cmd='"%PROGRAMFILES%\R\R-%version%\unins000.exe" /verysilent' ><exit code='-1'/></remove> + + <upgrade include="install" /> + </package> +</packages>