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.