www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14287] New: D uninstaller nukes the entire D installation


          Issue ID: 14287
           Summary: D uninstaller nukes the entire D installation folder,
                    including any user files
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: installer
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com
                CC: eco gnuk.net

The D1 and D2 Windows uninstallers currently do a recursive rmdir on the
installation directory:

  RMDir /r "$INSTDIR\dmd2"

Two users who I've introduced to D have now pointed this out. Although no
important data is lost, this is still rather unpleasant.

Ideally, we should only delete those files that we have installed, if they have
not changed since installation. Deleting only the list of files that have been
installed would also be acceptable.

For the moment, I've created a PR to warn users before the RMDir is executed:


Mar 15 2015