[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

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 -

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

2010-01-12 Thread Milan Marusinec
Graeme Geldenhuys wrote: * How does one create such a standalone application? * How do you include the application executable and other resources (text, image, sound files etc) inside such an installation executable? Hello Graeme, I did this on Windows in Delphi, but the principle is pretty

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

2010-01-12 Thread Milan Marusinec
Andreas Schneider wrote: 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)),

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

2010-01-12 Thread Andreas Schneider
I think if digital signing is required, using Windows Resources would be the better way. Now that I think about it, with FPC 2.4 that should even be possible on Linux (and other platforms). Many roads lead to rome :D Am Dienstag 12 Januar 2010 14:17:21 schrieb Milan Marusinec: Andreas

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 a

[fpc-pascal] I have some qustions about free pascal

2010-01-12 Thread
Dear Free Pascal, I am a senior high school student from China, when I use Free pascal I have some qustions: First, I want to use some Turbo Pascal's Uint in Free Pascal (I learnt pascal in TP7.0) but it seems I can't use TP's unit file. Can you tell me some solutions? Second, I

Re: [fpc-pascal] I have some qustions about free pascal

2010-01-12 Thread Jonas Maebe
When answering, please note that his person is not subscribed to the list. 彘, please mention this fact if you send mails to the list in the future, so that people know they have to cc you when replying. On 12 Jan 2010, at 06:45, 彘 wrote: Dear Free Pascal, I am a senior high school

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

2010-01-12 Thread Graeme Geldenhuys
On 12/01/2010, ik ido...@gmail.com 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

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

2010-01-12 Thread Graeme Geldenhuys
On 12/01/2010, Andreas Schneider ak...@gmx.de wrote: read all you need from there. So essentially your file looks like: original executableinstall datadata offset 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

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 graemeg.li...@gmail.com 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

Re: [fpc-pascal] I have some qustions about free pascal

2010-01-12 Thread Tomas Hajny
On Tue, January 12, 2010 15:12, Felipe Monteiro de Carvalho wrote: Hello 彘, Could you please subscribe to the list when asking questions and also please send plain text instead of html?   First, I want to use  some Turbo Pascal's Uint in Free Pascal (I learnt pascal in TP7.0)  but it

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

Re: [fpc-pascal] [OT] which editor - emacs?

2010-01-12 Thread David Emerson
It took me a couple years to take that plunge (of course a couple years ago Lazarus was not as robust as it is today) but I will never go back! Lazarus does have the distinct disadvantage that it's cumbersome to work on multiple projects at once. Especially, e.g., if I want to test some

Re: [fpc-pascal] [OT] which editor - emacs?

2010-01-12 Thread Vincent Snijders
David Emerson schreef: on multiple projects at once. Especially, e.g., if I want to test some feature or idea in a new little project, I tend to just do that in a separate editor rather than opening another group of lazarus windows or closing the big project I'm working on. For such use