Did you create the configuration backup as per our upgrade procedure? If yes, then you can just restore one to the new installation and you're done.
If you don't have the configuration backup, then it will take more time. First install version 9 with the new database, then upgrade it to whatever build you were using, then switch that installation to use your main configuration database, then perform the upgrade to 9.5 again - now correctly pointing the setup to the existing database.
If you need assistance with any of that, please don't hesitate to contact our support.