Assuming you have an MSI from a repackaged installer or have created a new one in the InstallShield editor, you can remove a registry key on installation by adding a record to the RemoveRegistry table. The help has more details about what goes in a RemoveRegistry record.