I just uninstalled R 2.7.2 on Windows XP after having installed R 2.8.0 The uninstaller removed the String values HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\Current Version HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\InstallPath despite the fact that they pointed to R 2.8.0 The uninstaller did not remove the key HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 (and all the values in that key) I think the uninstaller should only remove the Current Version entry if it points to its own version. In a second attempt, the 2.7.2 uninstaller removed the key HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 (which is what it should do) but it still removed the HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\Current Version HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\InstallPath values. It should not have removed these keys. Sometimes this does not happen, and I have not found a consistent explanation when it happens and when not. Sometimes also running RSetReg.exe creates a second entry like HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 which has identical content with the first one. The registry really looks like having 2 identical entries. Is this something which I should file as a bug? -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459
On 26/10/2008 9:50 AM, Erich Neuwirth wrote:> I just uninstalled R 2.7.2 on Windows XP after having installed R 2.8.0 > The uninstaller removed the String values > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\Current Version > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\InstallPath > despite the fact that they pointed to R 2.8.0 > The uninstaller did not remove the key > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 > (and all the values in that key) > > I think the uninstaller should only remove the Current Version entry > if it points to its own version. > > In a second attempt, the 2.7.2 uninstaller removed the key > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 > (which is what it should do) > but it still removed the > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\Current Version > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\InstallPath > values. It should not have removed these keys. > > Sometimes this does not happen, and I have not found a consistent > explanation when it happens and when not. > Sometimes also running RSetReg.exe creates a second entry like > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 > which has identical content with the first one. > The registry really looks like having 2 identical entries. > > Is this something which I should file as a bug?The deletions look like a bug, but probably not one that will get fixed by us. All of the registry entry removals are handled by the Inno Setup installer. It has options to delete, or to delete if empty, but no option to delete if unchanged. So our only workaround would be not to delete at all. Now maybe that should be the option for Current Version and InstallPath; do you think so? The duplicate entry also appears to be a bug, but if it's not reproducible, I wouldn't want to try to track it down. Registry keys are supposed to be unique, so maybe this is a Windows bug. You might want to export both keys to a file, and do a careful compare there. Duncan Murdoch
Note that Rversions.hta in http://batchfiles.googlecode.com is a Vista javascript script that will present you with a drop down list based on the R registry entries (and also allow you to change which version is current). Its a single file with no dependencies so just put it in your current directory (or anywhere in your path) and enter its name at the Windows command line to run it (or double click it from Windows Explorer). (There is an XP version in batchfiles 0.3-2.) On Sun, Oct 26, 2008 at 9:50 AM, Erich Neuwirth <erich.neuwirth at univie.ac.at> wrote:> I just uninstalled R 2.7.2 on Windows XP after having installed R 2.8.0 > The uninstaller removed the String values > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\Current Version > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\InstallPath > despite the fact that they pointed to R 2.8.0 > The uninstaller did not remove the key > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 > (and all the values in that key) > > I think the uninstaller should only remove the Current Version entry > if it points to its own version. > > In a second attempt, the 2.7.2 uninstaller removed the key > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 > (which is what it should do) > but it still removed the > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\Current Version > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\InstallPath > values. It should not have removed these keys. > > Sometimes this does not happen, and I have not found a consistent > explanation when it happens and when not. > Sometimes also running RSetReg.exe creates a second entry like > HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.7.2 > which has identical content with the first one. > The registry really looks like having 2 identical entries. > > Is this something which I should file as a bug? > > > -- > Erich Neuwirth, University of Vienna > Faculty of Computer Science > Computer Supported Didactics Working Group > Visit our SunSITE at http://sunsite.univie.ac.at > Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >