Install and reinstall action

I am building an app using the Remix template and want to perform a few backend actions when the app is installed or reinstalled. Where do I add these code blocks since there is no webhook like shopify app uninstall for installation or reinstallation.

for the uninstall you can use webhook (app/uninstalled)
For the install and reinstall,you can do the business logic after auth.