Welcome Guest, Not a member yet? Register   Sign In
Tips for making an installer?

I'm working on a downloadable (and obviously self-hosted) web app and I need to make an installer for it.

The whole idea is that the user will visit an installation form which will allow him/her to enter database information, site name, etc. That information will be validated, put into config files (for example, database.php will automatically be filled out after the form is submitted), and a database structure will be built.

Any tips for doing this? Any projects that have already accomplished something similar that I could look at? Should the installer be a part of CodeIgniter, or should it be its own 'install' directory that goes alongside CI?

Any tips are appreciated. Thanks!

[eluser]Colin Williams[/eluser]
I would develop it outside of CI in a single install.php file that the user can delete after a successful install. I guess you could technically have some sort of Installer controller if you felt you needed to use all the CI libs and such.

Here is a stand alone PHP Installer that I use.

PHP Easy Installer


Its much better to load the file helper and file write the database.php and config.php, its like a Joomla installer. Big Grin

Here is an implementation of codeigniter installer


I just created this small code for my own use: https://github.com/misaelzapata/CodeIgniter-Installer

Theme © iAndrew 2016 - Forum software by © MyBB