Just follow these steps:
1. Make sure tables are not there. Running a DROP TABLE statement does not mean the table will be removed as that could generate constraints violations. So drop the tables and check if they are there or not. Do not move to the next steps unless you have dropped all the tables
2. Remove all customs plugins
3. Remove corehacks (if any)
4. Retry the installation