question about custom action to edit security

question about custom action to edit security

How can I remove security inheritance from the parent key on a registry key and copy all current permissions using vbscript.