During writing deinstallation scripts I've stumbled upon the DLL hell.
All packages
- dcom-98
- ie-6.0.2800.1106
- vb_runtime-5
- vb_runtime-6
- vc_runtime-6
provide OLEAUT32.DLL (and more).
We should provide some mechanism similar to dpkg-statoverride:
- when there is a need to overwrite (within package installation) already existing file belonging to some package, the old file should be backed up into preferably filename.ext.package_name
- upon deletion of the filename.ext (on package removal), its files (non-backed up) should be erased
- package backed-up files should be erased
- package files which are occupying the default place filename.ext, when some other files in directory exists with the same filename.ext.* prefix, should be removed and replaced with the first 'waiting' DLL
Without such functionality we're going into serious troubles when uninstalling some application can break the complete installation to unusable state. This could lead to usage of wine-doors as 'install-only' tool.