PDA

View Full Version : Help regarding creating .run file for installation!



codeartist
6th May 2012, 05:51
I have coded a software. I have created all the front-end and socket programming in Qt 4.7.3 and Database I used was MySQL. Now I want to create a .run file so that when I will release it on internet. Everyone will have a executable file on which they just have to double click and the installation will start just as we do while installing QtSDK on linux. Can anyone please help me in creating the .run file so that it can be installed in any linux platform?

Please HELP ME!! I need help in urgent!

Thanks in advance!!!

ChrisW67
6th May 2012, 07:38
Like this: "Add a Binary Payload to your Shell Scripts | Linux Journal (http://www.linuxjournal.com/content/add-binary-payload-your-shell-scripts)" or "How do Linux binary installers (.bin, .sh) work? (http://stackoverflow.com/questions/955460/how-do-linux-binary-installers-bin-sh-work)" which could be found with about 15 seconds of Google time (http://lmgtfy.com/?q=shell+script+installer). There are even some tools (http://megastep.org/makeself/) that do part of the packaging (http://www.gnu.org/software/sharutils/) for you.

You still need to work out what needs to be copied, and where it should be installed, and how to make your shell script tolerant of platform differences

codeartist
9th May 2012, 20:18
Really very very thanks for the reply. Sorry for posting the same question twice. I posted it cause I was confused actually where to post it.

And I don't want to create a .sh file. I want to create a .run file just the Qt SDK setup for linux.
Am I clear? If not please tell me I will try to explain a bit more.

ChrisW67
10th May 2012, 02:04
I gave you the easy way. You want to do more work. Fine.

You can write a statically linked installer application that stores the data to be installed internally and presents an install wizard before extracting. For smaller programs you could do that with Qt (provided you meet the licence terms) and use the Qt resource system to hold the data. If you really want to know about the Qt SDK installer then you can always read the source code: http://qt.gitorious.org/installer-framework