Uninstall. Offer to help

Want to share what MODs you've gotten to work with EM? Happy about all the time your're saving? Want to say "thanks"? Here's the place.
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
blazes816
Registered User
Posts: 9
Joined: Wed Mar 22, 2006 10:51 am

Uninstall. Offer to help

Post by blazes816 »

Hello. :) I've seen a lot of comments about an un-install feature for EM but havn't seen any. Is there one? If not i'm more than happy to help. Weather coding or just idea bouncing i'd be more than happy to participate.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Uninstall. Offer to help

Post by Nightrider »

Restoring EM Backups

If a MOD that you installed with EM hosed your board or you decide that you just don't want it, simply go into EM History in your ACP MOD Center and click on the Details button next to the MOD entry..

Image

On the bottom of the next page, select Restore Backups and press the Go button. Make sure you DON'T select the Remove Record option or you will be forced to manually rolll back the EM backups that were created for you. I will have to walk you through that if need be...

Image

Next you will see a page to confirm eht operation. You would choose Yes:

Image

MODs can only be uninstalled in reverse order that they were installed: FILO (First In, Last Out). So if you installed a MOD, then several others, then decided to remove the first one, you would have to Restore the backups of the other MODs before you could Restore the backups on the first MOD...

Restoring EM Backups (Manual Instructions)

Download the backups folder that EM created for you in the MOD sub-folder found in admin/mods. Strip the .txt extension from each file in every folder in the backups folder. So the resulting file extensions will be php, tpl, css, and cfg. Upload the files back to their proper locations on your board; i.e.
  • copy backups/admin/*.* to phpBB/admin/*.*
  • copy backups/includes/*.* to phpBB/includes/*.*
  • copy backups/language/lang_english/*.* to phpBB/language/lang_english/*.*
  • copy backups/templates/subSilver/*.* to phpBB/templates/subSilver/*.*
  • copy backups/*.* to phpBB/*.*
Of course if you have alternate templates and language folders, you will need to copy the files for them as well. I'm referring to phpBB as your forum's root folder in the above copy commands. If your root folder has any other name, just substitute phpBB with the name of your forum's root folder name...

Image

blazes816
Registered User
Posts: 9
Joined: Wed Mar 22, 2006 10:51 am

Re: Uninstall. Offer to help

Post by blazes816 »

Yes, you could do this, but if you've installed other MODs since then wouldn't it get rid of them if they use the same files? I'm talking about a MOD of EM that would make it so you can hit an 'Uninstall' button that will change the code back without using backups.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Uninstall. Offer to help

Post by Nightrider »

Currently there is no Uninstall Tool that can read a MOD in reverse and undo the changes that were applied. To use EM's Restore Backups utility, you have to restore the MODs in reverse order that they were installed (FILO - First In, Last Out). So if you installed a MOD, then 5 more and then decided to remove the first, you would have to Restore the Backups for the last 5 before you could restore them for the first...

If you want to try to create a program that can reverse the MOD install by following the MOD script backwards, that would be neat to see in action...

Image

blazes816
Registered User
Posts: 9
Joined: Wed Mar 22, 2006 10:51 am

Re: Uninstall. Offer to help

Post by blazes816 »

Okay then ll try. I have the it pretty much planned out. I'll update later. Mabey start a thread in the development forum at phpbb.com :D

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Uninstall. Offer to help

Post by Nightrider »

Good Luck blazes816. You've got your work cut out for you. I hope it works out...

Image

blazes816
Registered User
Posts: 9
Joined: Wed Mar 22, 2006 10:51 am

Re: Uninstall. Offer to help

Post by blazes816 »

UPDATE: Can now uninstall MODs that have only FIND REPLACE WITH AFTER, ADD BEFORE, ADD. I'm working on getting the IN_LINEs to work right. I can't get the RegEX to work right for them. But i'm making progress. :D

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Uninstall. Offer to help

Post by Nightrider »

Wow, it sounds like you are making good progress...

Image

Locked