You're right, what I posted would only work if you did a standard install. You could save the entire directory as a bzipped tarball. That way you have all the config files when you want to uninstall. I don't know though, it seems there should be a better way to do this. Have you looked at
uninst?