msi: Only copy the resulting string if the RegistryValue call succeeded.