If I understand you correctly, you want to retain registry values between installations of you product, but things you add to registry are deleted in uninstall. Correct?
In this case, mark the component that has the RegistryKey/RegistryValue elements as Permanent. This will keep it after uninstall.