Re[2]: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread JoshyFun
Hello FPC-Pascal, Tuesday, January 12, 2010, 5:16:20 PM, you wrote: GG> Interesting, I never thought of trying that, or that that would work. GG> I'll try and create proof of concept tonight to see how it works. This works at least in Windows, in fact I'm using it in a self contained EXE/Data wh

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Krishna
Hi Graeme, On Tue, Jan 12, 2010 at 6:07 PM, Graeme Geldenhuys wrote: > Hi, > > I have seen a few Linux application that have standalone executables > that are installation programs. Once run, it installs the application > in the appropriate directory location, can run as root or normal user > and

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Graeme Geldenhuys
On 12/01/2010, Andreas Schneider wrote: > read all you need from there. So essentially your file looks like: > Interesting, I never thought of trying that, or that that would work. I'll try and create proof of concept tonight to see how it works. -- Regards, - Graeme - __

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Graeme Geldenhuys
On 12/01/2010, ik wrote: > > That's not how it's been done in Linux (and unix). > In linux you have files that starts as bash (or any other format) and tools > that adds after the script the binary information to extract it. I believe the tool is called 'makeself', but I don't like the bash part

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Rainer Stratmann
Am Tuesday 12 January 2010 13:37:26 schrieb Graeme Geldenhuys: > Hi, > > I have seen a few Linux application that have standalone executables > that are installation programs. Once run, it installs the application > in the appropriate directory location, can run as root or normal user > and creates

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread ik
Graeme, That's not how it's been done in Linux (and unix). In linux you have files that starts as bash (or any other format) and tools that adds after the script the binary information to extract it. I do not remember at the moment the names of the tools, but you should take a look at it. I knows

Re: [fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Andreas Schneider
Hi, that works the same as in Windows and can probably be done with every executable format. Simply append the data to the end of the file and store the offset or length of that data at the end. All you have to do then is to let the program open "itself" (ParamStr(0)), seek to the end - SizeOf(

[fpc-pascal] creating a standalone executable (eg: application installation file)

2010-01-12 Thread Graeme Geldenhuys
Hi, I have seen a few Linux application that have standalone executables that are installation programs. Once run, it installs the application in the appropriate directory location, can run as root or normal user and creates a desktop and Application menu icon. Similar to Windows's setup.exe idea.