Before diving into code, let's understand the tool.
This is the heart of the installer. It tells the compiler which files to include and where to put them. inno setup compiler tutorial