PDA

View Full Version : Releasing Updates for Mods to 4.x


consolegaming
01-05-2010, 10:39 AM
Ok so I can understand the announcement about the update notifications. But what is the actual update procedure? i.e. Releasing your own updated mods from 3.x to 4.x.

The actual mod I'm working on is finished and pretty much ready for release but it's this release step which I am unsure on when it comes to re-releasing my own mod. Now at the moment as I have updated my product rather than start from scratch, the product id is the same and surely for people upgrading that would need to be the case? As it would need to overwrite the old plugin i.e. ppl shouldn't have to uninstall the old version (lose all their settings in the process) and then install the new one.

So how should I go about this? This will be the first time for me releasing an updated version (on a different series) of my own mod.

Sorry if there's already an article/thread that answers this question but I couldn't find anything from my brief look and I'm a bit perplexed on how this should be handled.

After taking a look at one of Paul's mods it seems he used separate product id's but what about the issue with install/uninstall code adding/removing extra fields? Surely people uninstalling the old version would remove database fields that are added on the install. Shouldn't the upgrade process be as simple as possible for everyone?

Paul M
01-05-2010, 10:59 AM
I give each new release a new product id suffixed with the vb version its released for (e.g. xxxx_40) I then use a little piece of installation code I wrote that removes older versions of the same mod (based on productid) when you install the new one, therefore the update procedure is simply to install the new version (not uninstall the old one first). Due to the way the vb install system works, this does not remove any data from the old mod as the uninstall code isnt run. It also appears to preserve settings (as long as the setting name has not changed).

consolegaming
01-05-2010, 11:12 AM
Ah so you just run a mysql query to delete the old product (below)? Or do you do something a little more advanced than that (though I can't see what else you'd really do)?

i.e. DELETE FROM product WHERE productid = 'xxxx_10'?

I hadn't thought about that at all. Sounds like a good solution to me. Though it does seem a little strange to me that we have to release them as separate mods. Especially between sub versions when much isn't changed. i.e. 3.6 and 3.7.

Also is it general practice to re-release mods for new versions of vB even if the old version of your plugin still works? i.e. If they came out with 4.1 next month and my current mod still works is it normal to re-release the exact same product just for the new version or do people leave things as they are and add a note to the current release saying that it still works for that version of vB.

Paul M
01-05-2010, 02:53 PM
Ah so you just run a mysql query to delete the old product (below)? Or do you do something a little more advanced than that (though I can't see what else you'd really do)?

i.e. DELETE FROM product WHERE productid = 'xxxx_10'?

I hadn't thought about that at all. Sounds like a good solution to me. Though it does seem a little strange to me that we have to release them as separate mods. Especially between sub versions when much isn't changed. i.e. 3.6 and 3.7.
Its a little more complicated than that. ;)

Also is it general practice to re-release mods for new versions of vB even if the old version of your plugin still works? i.e. If they came out with 4.1 next month and my current mod still works is it normal to re-release the exact same product just for the new version or do people leave things as they are and add a note to the current release saying that it still works for that version of vB.
Thats really upto the developer, some will update the existing thread and ask us to move it, I prefer to have a seperate release for each major version (all my mods have dependancies in them as well to limit them to the version they were released for).

Who knows what we will do for 4.1, I think it will be a while before we need to worry about that. :)

consolegaming
01-05-2010, 03:21 PM
Its a little more complicated than that. ;)


Do share ;). Obviously I know that there'd need to be more than what I just posted to actually do the query but it'd be worth knowing if there's more that could/should be done than just calling a query. I guess I'll just sneak a peak at one of your products :P.

Thats really upto the developer, some will update the existing thread and ask us to move it, I prefer to have a seperate release for each major version (all my mods have dependancies in them as well to limit them to the version they were released for).

Who knows what we will do for 4.1, I think it will be a while before we need to worry about that. :)

Ok, fair enough. It's nice to get some insight about the process. And personally I see 4.1 coming fairly soon. i.e. month or 2. I'd expect to see them work through the version numbering much quicker so that in 18 months - 2 years time they can offer us 5.x for more money still lol. That's just my opinion on how things will be. I hope I'm wrong in that respect but we'll have to wait and see.