rtpHarry
24th November 2006 11:53 UTC
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.
kichik
24th November 2006 12:00 UTC
Use the File command to put files into the package and extract them on runtime. See the Examples folder for many example using this.
rtpHarry
24th November 2006 12:38 UTC
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?
kichik
24th November 2006 12:43 UTC
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.
rtpHarry
24th November 2006 13:58 UTC
Thanks I'll try this out.
rtpHarry
24th November 2006 16:08 UTC
This worked a treat! Thanks
LordAesir
25th November 2006 06:33 UTC
Tell me please how to do that sir