| View previous topic :: View next topic |
| Author |
Message |
q2dg
Joined: 18 Nov 2006 Posts: 4
|
Posted: Sat Nov 18, 2006 1:42 am Post subject: Installation of a standalone php-gtk application |
|
|
Hello!
Iīve installed Gnope and Iīve done my first application in php-gtk. And itīs works fine. But my question is: what have I got to do in order to create a installer of my program (or a simple zip file with all the necessary files) and to be able to redistribute my application like an ordinary Windows software in other computers that havenīt php-gtk installed?
Thanks!! |
|
| Back to top |
|
 |
filth
Joined: 02 Sep 2006 Posts: 5
|
Posted: Sun Nov 19, 2006 2:06 am Post subject: |
|
|
if using php-gtk then you can use roadsend or http://www.priadoblender.com/ but I do not think there is a method for php-gtk2 as of yet.
I did ask Scott Mattocks a while back and he advised the following:-
| Quote: | The Gnope installer however is open source and can
be modified to install a PHP-GTK 2 application along with PHP-GTK 2 and
other needed libraries. Right now that is the closest thing there is to
standalone scripts. |
Both people who run the methods for php-gtk have claimed to be working on a version that will work with php-gtk2. |
|
| Back to top |
|
 |
q2dg
Joined: 18 Nov 2006 Posts: 4
|
Posted: Sun Nov 19, 2006 1:22 pm Post subject: |
|
|
| Thank you very much!! |
|
| Back to top |
|
 |
cohort
Joined: 07 Feb 2006 Posts: 47
|
Posted: Sun Nov 19, 2006 2:40 pm Post subject: |
|
|
I would suggest, instead of modifying the Gnope installer, that you wrap it within an installer for your program, or offer to download and install it.
Basically, when the installer runs:
- Test for a current install of Gnope
- Offer to install it if it doesn't exist
- install your program
A couple of free installers:
- NSIS - open source (license)
- InnoSetup - freeware (license) |
|
| Back to top |
|
 |
stefan
Joined: 17 Apr 2006 Posts: 35 Location: Germany
|
Posted: Sun Nov 19, 2006 9:24 pm Post subject: |
|
|
hi,
here is a very easy way to distribute your prog. (at least if you do not need pear
just create a new folder, copy into this the folder with your gnope-installation. rename the gtk2-folder into "system" or whatever you like. copy your script-files into the mainfolder.
create a batch-file with the following commands:
@echo off
system\php.exe runprog.php
pause
the runprog.php should be the mainfile of your prog.
if you don't like the DOS-Window, which will open if you use the batchfile (this is good for debugging, but not for a real prog.), you can use "AutoIT" to create an executable file. (just google for it)
now you can pack your mainfolder with zip or another packer and distribute it. you can use your prog then on other maschines, there will be no registry-entries or something.
but keep in mind, with this way, you cannot use the phpw-files diractly anymoe to start your progs (like in gnope) instead use the batch or exe-files. |
|
| Back to top |
|
 |
filth
Joined: 02 Sep 2006 Posts: 5
|
Posted: Sun Nov 19, 2006 10:59 pm Post subject: |
|
|
| cool cheers stefan I think I will give this a try myself. |
|
| Back to top |
|
 |
|