[Gambas-user] (no subject)

Chas.Bigham c_bigham at ...605...
Mon Sep 20 10:59:11 CEST 2004


From: Benoit Minisini <gambas at ...362...>
* Re: Re: Including a file with install packages* 
<http://sourceforge.net/mailarchive/message.php?msg_id=9568298>  
2004-09-19 09:04

 On Friday 17 September 2004 07:08, Chas.Bigham wrote:
 >     From: Chas.Bigham <c_bigham at ...631...>
 > * Including a file with install packages*
 > <http://sourceforge.net/mailarchive/message.php?msg_id=9544495> <http://sourceforge.net/mailarchive/message.php?msg_id=9544495%3E>
 > 2004-09-16 01:06
 >
 >  Good $TimeOfDayInYourGeographicalLocation everyone.
 >
 >  i want to iclude a text file with the rpm/source package of my program.
 >  this text file is not created by my application its self, however is
 >  essential for it"s functioning. How would i go about including this file
 >  with the install packages so that this file is installed at installation??
 >
 >  thanks for any help anyone can offer
 >  Chas. Bigham
 >
 >
 
 Can you give more details ?
 
 -- 
 Benoit Minisini
 mailto:gambas at ...636...

yes....

the project i have been working on(gui4bdc (gui4bdc.sourceforge.net for a few details and general info)), 
interfaces with a command line application(in this case, Bit Defender Console). initially, i loaded the virus list using a 
Process_Read function and would stream the text to a text area control, but this was sluggish and resource intemsive,
so i decided to replace it with a File.Load routine. thus i created the virus list in /var/bdc/viruslist running BDC from 
a console with bdc --viruslist >/var/bdc/viruslist and made txtboxVirusList.Text = File.Load("/var/bdc/viruslist").
But, if i want to be able to use the File.Load operation with my application and have others be able to use the app,
then i need to have this file as part of the installation.
so, i rite clicked in the project explorer window on the Data folder, chose new - Text File. when the dialog appeared, 
i chose the tab that said Existing, browsed to /var/bdc and in the file textbox i put viruslist. so now, the text file
viruslist is part of the Data in the project. however, when i compile and make executable, then create an installation rpm for Mandrake,
when i open the rpm in Kpackage and browse the file listing, /var/bdc/viruslist is not part of the rpm.

i tried to think of a way to create the file at app launch and afterwards, check for it's existance and to determine whether to 
create that file or not, however, that is something beyond my abilities and limited skilla at this time. if need be, i can post a source 
package of the project at gui4bdc.sourceforge.net of my project code as it stands at this time and you can open the 
project in gambas and create the rpm's yourself to see what i am talking about.

and please let me know if you need further information.

merci, mr. minisini.
Chas.





More information about the User mailing list