Keep value of registry record between uninstalling and reinstall package

You could probably use a 'setuphandlers' (there is a pre_handler and a post_handler) and set the value (if it does not exist) with:

plone.api.portal.set_registry_record

Also: make sure that the uninstall profile does not remove it.