Dynamically creating the registry file.