I built a simple script a while back that saves the relevant MC settings to a REG file which you can then double click on (with MC closed of course) to restore the settings.
It's in the Third Party Plugins forum, and is included in the "Index To What's Here" thread. (Sorry, I don't feel like looking it up.)
So you know... MC handles upgrading to new versions in-place just fine. 99.99% of the time, there is no need to uninstall first when you update to the newest build. MC handles preserving all your existing settings just fine when you install the new builds overtop of the old ones. If you are uninstalling first before you install new minor builds you are just wasting time and effort. I only do this if I'm experiencing weird problems (and even then it usually doesn't solve them).
The only time when MC doesn't preserve your settings is when you're upgrading to a new Major Version Number (ie v11 to v12). This is done intentionally so that no old "bad" settings pollute fresh installs of new versions. The script I made is useful for migrating to a new computer, for when you completely wipe and re-install everything on the machine, or for sharing settings between multiple machines. For "upgrading to new versions" though it generally isn't an issue.