Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
btpoole
Level 7

Check for Previous Installed Version of Channel

Is there an easy way to check for a previously installed version of a channel? For example, user installs a channel, an update comes out, the update checks if previous version exist. I have an idea on checking registry for existing info but was wondering if there was another way.
Thanks
0 Kudos
2 Replies
Roku Employee
Roku Employee

Re: Check for Previous Installed Version of Channel

When new version is installed and has chance to run, the old one has already been removed.
Using `roRegistrySection` is the way to handle this - e.g. say have a key `version` in it, on app launch check what's in it and if older, do whatever upgrade or notification needed. If key does not exist, it's first install of the app (or prior version that did not care about versioning). Then store the current version there.
0 Kudos
btpoole
Level 7

Re: Check for Previous Installed Version of Channel

Thanks, kinda what I am doing. Just wasn't sure if I am over looking something else that might exist to do the same thing.
Thanks
0 Kudos