How can a program create another executable file?
<p>Basically I'm asking how do installers work. What is the code that creates a new executable file?</p>

<p>EDIT: It sounds like the answer I'm looking for is the files are stored in archives and the installer unpacks them.</p>
