You're on the right track.
1. Backup your 4images database using the Admin Control Panel
2. Rename config.php so the installer won't detect it.
3. Run install.php to create your database tables on the new database and recreate your admin login so you can access the admin control panel again.
4. Restore your database from the admin CP.
I think that should be all there is to it.