There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Unistalling doesn't delete the related record from table ModuleDefinitions, then in the next installation it raises the Duplicate error. It needs to implement the code below in the Uninstall script:
DELETE FROM ModuleDefinitions WHERE (FriendlyName = N'Events')