Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hoffmcs
Visitor

Re: Publishing woes

Removing all channels that are signed with the same key will clear the registry. Another method is a factory reset but removing the channels first and then readding them should do the trick.
0 Kudos
renojim
Community Streaming Expert

Re: Publishing woes

"dynamitemedia" wrote:
@ RenoJim

actually the code does nothing, i tried inside a function no good outside tosses out errors...

Thanks for trying.

I would like to know more about this reglist however


That's strange. I did leave out the flush that should be at the end (i.e., myreg.Flush()). It works for me. I would add some prints to see what's going on:

myreg = CreateObject("roRegistry")
reglist = myreg.GetSectionList()
print reglist.Count();" sections"
for each sect in reglist
print sect
myreg.Delete(sect)
end for
myreg.Flush()

You have to keep in mind that you can't modify a registry in a signed package from outside of that package. In other words, you can't run the above code from an app you download through the "Development Application Installer" web page of your Roku (known as sideloading). You have to put it in your app, package it and upload it to Roku, download it to your box via the Channel Store, run your channel which should execute the code to delete everything (obviously, the prints won't do anything), then modify your code to take out the registry deleting stuff, repackage and reupload to Roku, and then you should be good to go. If the registry is really becoming a problem, you might want to just put the above code in it's own "RunUserInterface" routine and package it as it's own private channel. Then you can add that channel to your box to delete the registry at will while you're getting things straightened out.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.