Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bobi 352 posts 956 karma points
    Apr 07, 2017 @ 06:18
    Bobi
    0

    Package / Nuget Re-Install Prevent Content Loss

    If you have to re-install a package but are heavily invested in that package (via the amount of content you have added using that package), is there any way to prevent content loss if you have to re-install that package?

    I was thinking to install the nuget version of the package but do not want to lose the content within the doc types.

    So if I uninstall the package, I'm assuming that the data will uninstall on all of the doc types and correspondingly I will lose all the content added via that package. But I was thinking that if I install that package via nuget before uninstalling the package from the back end, then the content wouldn't disappear because the property aliases, etc. that each doc type relies on would be present by way of the nuget.

    Any ideas?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 09:55
    Alex Skrypnyk
    100

    Hi Bobi

    There no dependency between package installing\uninstalling and content. It can be only if there some custom logic in the package. To be sure check please needed package, has it some code like that or no.

    What package you want to uninstall?

    Thanks,

    Alex

  • Bobi 352 posts 956 karma points
    Apr 07, 2017 @ 14:16
    Bobi
    0

    Hi,

    Thanks for the reply.

    The package is RankOne.

    What about the nuget idea? If you install a nuget version would it work similarly to the package or is there some extra steps you have to take?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 14:18
    Alex Skrypnyk
    1

    It should be absolutely the same. The only difference is how to do it and do you like to use Visual Studio or Umbraco Packages section.

  • Bobi 352 posts 956 karma points
    Apr 07, 2017 @ 14:35
    Bobi
    0

    Ok, awesome. I develop with VS so to prevent any content loss I'll just install the nuget then uninstall the package and it should work the same with no extra steps.

    Thanks.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 14:37
    Alex Skrypnyk
    0

    Cool stuff, Bobi. Nice to solve an issue before the weekend.

    /Alex

  • Bobi 352 posts 956 karma points
    Apr 07, 2017 @ 15:26
    Bobi
    0

    If only it was so easy haha. The package won't uninstall. I think it is because I'm using doc types from the package. Any suggestions?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Apr 07, 2017 @ 15:45
    Alex Skrypnyk
    0

    Didn't use this package before, maybe you are right.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies