On Sat, Apr 26, 2008 at 8:13 PM, Keith Marshall wrote:
> On Saturday 26 April 2008 21:41, Cesar Strauss wrote:
> > The optimal solution would be to improve the installer to:
> > 1) Create a manifest file as each package is unpacked.
> > 2) At uninstall time, consult the manifest and remove only the files
> > listed.
> > However, having looked at the NSIS code and at the untgz plugin
> > source, I realize this is not a light task.
> Could we not provide a pre-built manifest, based on a clean
> installation, properly isolated in its own tree, bundle that with the
> installer, and use it as the basis for removing an installation?
Yes, this should be an easier task.
Another option (not an original idea) is to bundle, within each
package tarball, a manifest with the full path as
etc/setup/<package>.mf. That way, even if you unpack some packages
manually, the uninstaller is still able to look at the /etc/setup dir
and know what files are installed.
> > I do have confidence that
> > this will be in the next version, but it will take some time. I
> > propose that, for now, we simply disallow recursive deletion of files
> > by the MinGW installer.
> > I created a patch that can be found here:
> > http://sourceforge.net/tracker/index.php?func=detail&aid=1664562&grou
> > At the end of uninstall, the user will be presented with the
> > following message: "MinGW was successfully removed from your
> > computer.
> > However, some files may still remain. Please check $INSTDIR for files
> > that you wish to keep, move or delete."
> > I took the liberty of preparing a new installer based on this patch.
> > If it's agreed upon, I can upload it into a "Technology Preview:
> > MinGW 5.1.4" release for your testing. I do not want to step in
> > anyone toes, and if I do I will apologize and respectfully retract
> > the offer. It's just that IMHO this issue is critical and requires
> > immediate action.
> I've not had time to review your patch, but the concept seems fine as a
> quick fix, (which I agree is urgently needed). Please go ahead and
> upload it.
It is now available for testing.
I strongly recommend *not* uninstalling the previous version before
installing this one.