Create an update

  • Hi :)


    I have developed a new BBCode, the table BBCode.


    It work correctly. But I have a problem.


    I create a new version, the 1.0.1, but when I try to update my old version I receive the error

    Quote

    Si è verificato un errore: An update of package it.free-technology.wcf.data.message.bbcode.table from version 1.0.0 to 1.0.1 is not supported. (18100)

    I think that the problem is into the package.xml file
    The version that I uploaded here is an installer not an update.


    So: There is anyone that can indicate to me how to create an update package? Or fix this error? Thanks :)

  • Code
    1. <instructions type="install">
    2. <files>files.tar</files>
    3. <bbcodes>bbcodes.xml</bbcodes>
    4. <languages languagecode="it">it.xml</languages>
    5. <languages languagecode="en">en.xml</languages>
    6. <languages languagecode="de">de.xml</languages>
    7. <languages languagecode="fr">fr.xml</languages>
    8. <languages languagecode="de-informal">de-informal.xml</languages>
    9. <languages languagecode="pt-BR">pt-BR.xml</languages>
    10. </instructions>


    You need a instruction type update.

    Code
    1. <instructions type="update" fromversion="1.0.0*">
    2. <files>files.tar</files>
    3. <bbcodes>bbcodes.xml</bbcodes>
    4. <languages languagecode="it">it.xml</languages>
    5. <languages languagecode="en">en.xml</languages>
    6. <languages languagecode="de">de.xml</languages>
    7. <languages languagecode="fr">fr.xml</languages>
    8. <languages languagecode="de-informal">de-informal.xml</languages>
    9. <languages languagecode="pt-BR">pt-BR.xml</languages>
    10. </instructions>


    in the tag
    <instructions type="update" fromversion="1.0.0*">
    </instructions>


    You can write the files that you want to update.

  • Ok,

    Code
    1. <instructions type="update" fromversion="1.0.0*">
    2. <languages languagecode="de-informal">de-informal.xml</languages>
    3. <languages languagecode="pt-BR">pt-BR.xml</languages>
    4. </instructions>


    Make this in the package.xml

  • And the other code and Files?


    Into the tar file, I have to save only the package.xml an the two languages file? Or all files as it is at this moment?


    Thanks for you attention ;)

  • You have to make a complete package of all files. Then you only have to write the "instructions type update" below your "instructions type install" in the package.xml of your base package like this (if a Package will be updated from a former Version it only takes the "update tag" and operations included in it.):


  • I try into this two way:


    1)


    and after i compile the package, I can update.


    2)


    If I have the 1.0.0 installed, I cannot update :S


    It's a problem If I use the first one?
    The tar file have all files of the first version...

  • If you want to update you must make a step in the Version number. ;)
    Make a package of the files.tar, bbcodes.tar and all language xml´s and use for your package.xml this sourcecode:
    With this package you can update the version 1.0.0. //Edit: and you certainly can install the new 1.0.1 with all language files included!

  • Ah ok install... yes.


    But an update?


    With an installer I have to delete te old version.
    After I have to reinstall the new one.


    But If I use the code that I put into the first step, I'm able to update a preinstalled version.


    I ask: It's a correct way?

  • No, you don't have do remove the old version because you choose "Refresh Package" and don't choose "Install Package". Therefore this package.xml can be used as install-type and update-type as well.

  • You have not to create a separate"Update-Only" package! You can write the "update tag" in the "new-version-base-package".
    Then you can install the new version with it (if it´s not installed), also you can update an older installed Version with this package file. It means you have to create only one package file for both options. :)


    //edit: "Funboard" was a little bit quicker... ;)

  • Infact I use "update package" not install a new package.


    If you can test, these are my packages:



    This is the first version woltlab.com/attachment/24903/


    This is my update woltlab.com/attachment/24904/


    If I use these two the update work.


    If you change the file package.xml into this file woltlab.com/attachment/24904/ with the sourcecode of Sani9000
    And try to update ... I hope that you receive the same error that I receive. I'm not crazy :P

  • I´ll complete your Plugin, one moment.



    //edit: Download deleted. Link via PM!


    You can install the new version with it and you can update the old with it. Only one package.