D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14287 - D uninstaller nukes the entire D installation folder, including any user files
Summary: D uninstaller nukes the entire D installation folder, including any user files
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: All Windows
: P2 critical
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-15 17:03 UTC by Vladimir Panteleev
Modified: 2022-12-17 10:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Vladimir Panteleev 2015-03-15 17:03:17 UTC
The D1 and D2 Windows uninstallers currently do a recursive rmdir on the installation directory:

  RMDir /r "$INSTDIR\dmd2"
  RMDir "$INSTDIR"

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:

https://github.com/D-Programming-Language/installer/pull/121