Forum Discussion

vmc's avatar
vmc
Visitor
12 years ago

data cleanup on uninstall

Hi,
Is there any event function which can be trapped in brightscript at the time of uninstalling app ?

I would like to cleanup certain data from registry at the time of uninstall,
so that when user installs channel again, channel goes through device activation process again.

I have also though of accessing app ID using external control (SSDP), but I am not sure whether app ID is really unique ?
I mean if I uninstall app and insall same app again, will it have different app Id ?

Also is there any example for using ssdp to fetch app id from brightscript ?

Thanks in advance

2 Replies

  • When a channel is uninstalled, the registry associated with that channel is automatically removed. You don't need to do anything in your channel to make this happen.

    This doesn't work quite the same way for dev channels. For a dev channel you need to do a "check for new software" to make the dev channel's registry be removed after removing the dev channel.

    --Mark
  • destruk's avatar
    destruk
    Streaming Star
    If you have multiple channels with the same devID -- then the registry will not be cleared until all those channels are also removed.