You can use a registry value to reset all the roles and role assignments so that they are the same as they were when installed.
See the description of the ResetAuthorizationStore value in the Registry Values manual.