Introduction
Initializing data when you are installing an extension automates many steps that you'd otherwise need to do manually. By automating the process, you can quickly set up an extension that you're developing.
When installing an extension, you might want to have certain operations outside of the extension code installed. These operations could include populating empty records with data, service callbacks and telemetry, version checks, and messages to users.
To perform these types of operations, you should write extension install code. Extension install code is run when:
An extension is installed for the first time.
An uninstalled version is installed again.
This process enables you to write different code for initial installation and reinstallations.