Archive: Choose which files go in the installer


Choose which files go in the installer
Is there a way I can force files into the installer package?

I created an install using the xml file plugin to store the data and just realised after finishing everything that it isnt packing it into the install.

This means that I would have to distribute the setup.exe and data.xml as two seperate files which breaks the whole point of having the setup in the first place.


Use the File command to put files into the package and extract them on runtime. See the Examples folder for many example using this.


Thanks I will try that but I thought I could only use File in the install files Section.

Can I use it to add any file? Also is there a way I can extract it for use during the installation? Something like the way the .ini is extracted for InstallOptions?


You can use it in a function or a section to add any file. The command itself both adds on compile time and extracts on runtime. The INI files for InstallOptions are also extracted with File. It may be wrapped with a bunch of macros, but in the end, it calls File.


Thanks I'll try this out.


This worked a treat! Thanks


Tell me please how to do that sir