FBA The Creator
http://www.fbacreator.com/fbaforum/

Add option to allow other files to be included in the CAB
http://www.fbacreator.com/fbaforum/viewtopic.php?f=3&t=64
Page 1 of 2

Author:  Boiled Sweets [ Thu Jun 26, 2008 12:25 pm ]
Post subject:  Add option to allow other files to be included in the CAB

I need to be able to install a <progname>.INI file with my application. COuld this please be added to the options when building an installer?

THANKS!!!!

Author:  umbiomar [ Thu Jun 26, 2008 12:38 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

What about adding the ini file to the application resources?

why you need an external .ini file?

Author:  Boiled Sweets [ Thu Jun 26, 2008 12:50 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

Was using the inbuild configuration file support!

If I stick the INI in the resource file will the openconfig() etc open from the resource file?

Author:  evilmaio [ Thu Jun 26, 2008 12:56 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

Yes openconfig should open an ini file from resources.

Author:  Boiled Sweets [ Thu Jun 26, 2008 1:03 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

COOL!

Perhaps the docs should indicate that would happen....

Author:  Boiled Sweets [ Thu Jun 26, 2008 1:41 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

Hmm, doesn't seem to pick up the ini file in the resource...

Code:
     -- INI file
       
        openconfig("amazing.ini")

        local opt_block_size = readconfignumber("options", "blocksize", "16")

        debug(opt_block_size)


ini file is called amazing.ini and in the resources, contains...

Code:
[options]
blocksize=32


however the debug shows 16

Author:  evilmaio [ Thu Jun 26, 2008 2:16 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

Mmmh...you're right...

Actually the only way to read a line from a resource file is using
openres("myfile.txt", true)
(true = multi line parsing)

openconfig works only for newly created config files

Author:  Boiled Sweets [ Thu Jun 26, 2008 2:21 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

So then back to my original request - can we have an option to include file(s) in the installer cab please?

Author:  Boiled Sweets [ Tue Jul 08, 2008 2:52 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

Hi,

still need a way to write to a internal resource file. Why?

I want to save the current level the user is on and don't wnat them to be able to open an external file and edit it. So how can this be done?

Author:  phrebh [ Tue Jul 08, 2008 4:02 pm ]
Post subject:  Re: Add option to allow other files to be included in the CAB

I thought that was what the cryptkey parameter is for: so you can encrypt your config files. Of course, I could be way off the mark.

Page 1 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/