2
You probably can, so long as your database is intact. Try:
* If you have a backup file of your database, look through it and copy the relevant tables for your module into a new text file saved with a .sql extension. Alternatively, export the relevant tables to a .sql file using MyPHPAdmin etc including the 'drop table if exists' option. (If you are not sure which tables belong to the module, you can find out the table names by looking in the module's /sql directory).
* Install the new version of XOOPS.
* Install the module.
* Restore the database tables for the module (in MyPHPAdmin you can just select the new .sql file you made and it will rebuild the tables for that module).
It should work ok - unless the hacker messed up your database.