Dolibarr Application Updater

I have seen the update process of phpBB from one version to the other and was impressed with its ability to detect/identify and show updated code and user made changes and gives the option to replace or merge the files with the differences.

It would be nice if Dolibarr updater script would have some of the similar features.

So that the updation process too could be done seamlessly without having to fear loosing out on some or all the customizations that we have done.

Thanks

To offer such feature we must volontary add serious security holes in software. Allowing software to update itself means a hacker can update it too (even if there i password that let you think it’s not).
So for the momen such dangerous feature is not planned. But may be as a hidden option…

Oh! Eldy I think you misunderstood.

I am not talking about phpbb being able to update itself online (In fact i dont think phpbb has such a feature, except that when we are in the control panel it shows if we are using the latest version or if there is a newer version available)

I am talking about the update package that we download is different from the first time install package and so the new files are in different folders and don’t overwrite the existing files, preventing the possible loss of any customizations that we may have made. When we run the update the updater script checks the existing files of any modifications and customizations that we may have done. if it detects any file that is modified it immediately shows us the existing file along with the new available updated file, in a split comparative view, displaying the lines of code that are different, it then gives the options to keep the existing file, over write existing file and the option to merge the file replacing old code and keeping the customizations intact. It may confuse newbies but i feel it will be good for advanced users.

i wish there was some way i could show you the process. hmm

OK. I understood the process. However it seems to be very difficult to develop.
May be we will think of this when developping an online updater but not a priority for me.
An unzip can be done into a temp directory and a diff can be done to solve your pb. Except for version 2.9 because file location on tree has been changed.