Assume I want to create an application working together with LaTeX compiler behind the scene. For the sake of simplicity, assume I also use
minimal document class and no package imported.
At the final stage, I want to deploy this application to a computer with no LaTeX system installed. This scenario forces me to make the installer get shipped with the LaTeX compiler.
Shortly speaking, which files (in LaTeX distribution) are needed as minimal as possible?