central repository

Login to reply to this topic.
Thu, 2005-10-13 14:34
Joined: 2005-09-26
Forum posts: 36
I am having trouble figuring out how to create a repository in the central repository. According to the symbian 9.1 documentation, CRepository::NewL() "Creates a CRepository object for accessing a repository. If there is no such repository, the function leaves with KErrNotFound."

This is indeed what happens to me now, I try to call NewL and I get KErrNotFound. So, if my repository does not exist how do I create it? The documentation does not seem to cover that...

Thanks very much!

Rich

Thu, 2005-10-13 22:23
Joined: 2005-10-13
Forum posts: 33
Re: central repository
by definition, there is only one, central one?

What SDK is this?  What device are you targetting?  Is this on-device, or in the emulator?
Fri, 2005-10-14 19:35
Joined: 2005-09-26
Forum posts: 36
Re: central repository
well I sortof found an answer to my question...was I was looking for is apparently referred to in Symbian docs as registering a repository with the central repository. This involves creating a special txt file in the z:\private\10202be9\ folder. I did this, and am following their guidelines for format, but now, instead of TechView giving me a "Not Found" message, I get a "Corrupt" message.

The only thing I can think of is if there is some OTHER step I need to do to register my repository besides just copying the file. Plus, I chose a completely arbitraty UID that I call in my code and  that I named the txt file, just 10001234. Is there a chance my randomly chosen UID is causing it to be corrupt?

On a realted note, if I change the UID in my code to a UID that already exists in the repository, meaning, the name of a txt file that already existed in z:\private\10202be9, then the repository is successfully loaded. For example, if I try to load repository 101FB5DF, it loads without error, but this is obviously logically not what I want. Since the format of my file seems to be correct, this is why I thought maybe there was something else I needed to do to register my UID???

Any insight is appreciated, thanks!

Rich
Thu, 2005-11-03 13:16
Joined: 2003-10-10
Forum posts: 124
Re: central repository
The .txt file stored in the central repository area 10202BE9 needs to be Unicode UTF16 formatted otherwise you will get KErrCorrupt (-20) when you try to use CRepository::NewL (),
Thu, 2005-11-03 18:00
Joined: 2005-09-26
Forum posts: 36
Re: central repository
I noticed that in the spec as well, but, is that not the default windows notepad text format?
Thu, 2005-11-03 21:15
Joined: 2004-05-29
Forum posts: 149
Re: central repository
Quote from: rpodraza
I noticed that in the spec as well, but, is that not the default windows notepad text format?

Nope!  UTF16 is a multi-byte encoding.  Windows notepad was created, probably circa 1993.  Try Wordpad or maybe Word.

-euroq
Thu, 2005-11-03 22:46
Joined: 2005-09-26
Forum posts: 36
Re: central repository
thanks for the info...it has been very helpful. I still am having trouble figuring out WHERE to put this txt file. The docs say either c:\private\<datacage>\persists, c:\private\<datacage>, or z:\private\<datacage>\

If I put one in any of these places I get results varying from corrupt, to not found, but never anything proper. Its like I either get error messages or nothing.

Is there anything I need to do with the .cre files? Those seem to be the key, because you can't call NewL on a repository that doesnt have a .cre file, but I can't figure out how to generate one!

Thanks much,
Rich
Fri, 2005-11-04 14:24
Joined: 2005-09-26
Forum posts: 36
Re: central repository
wellll to answer my own question, turns out that by deleting the cre file, and installing a UNICODE txt file in z\private\<datacage> to initialize works. I think my last problem was caused by having both...turns out I just want the txt file and to let the internal workings take care of the rest.

thanks for that tip on the unicode shit that was my major problem.
Mon, 2005-11-14 17:50
Joined: 2005-11-14
Forum posts: 4
Re: central repository
Does anyone actually have access to the Central Repository How-To.doc
and the CentralRepositoryDesign.doc files for symbian os 9?  My devkit doesn't seem to have them installed and I can't seem to find them anywhere.  If anyone can point me to these files or transfer them over I'd greatly appreciate it!

_Brian
Fri, 2005-11-18 13:05
Joined: 2003-10-10
Forum posts: 124
Re: central repository
Yes the docs should be public though
Thu, 2006-03-16 11:55
Joined: 2005-02-11
Forum posts: 214
Re: central repository
Can anyone give a link from where to find these docs.

"I only know that I know nothing." (Socrates)

Fri, 2007-04-13 11:57
Joined: 2004-06-22
Forum posts: 148
Re: central repository
Hi,

I am able to create an instance of the CRep by creating the initialization file..and it works spotlessly on the emulator.


Where I am getting stuck is how do I make the thing to work on the device..i mean just the same way we have to create the initialization file for the emulator builds..same way we have to have a way to put the initialization file in the correct folders on the device also.


How can the same be done..i am sure there would be a way to do it

Can someone throw some light on it please?

Cheers
mayank
Mon, 2007-04-16 14:47
Joined: 2004-11-29
Forum posts: 1233
Re: central repository
Doesn't it work to do it the normal way?

That is; put it in the pkg file and let the installer copy it to the right place?
Mon, 2007-04-16 14:50
Joined: 2004-06-22
Forum posts: 148
Re: central repository
I tried:-

When i do something like :-

"$(EPOCROOT)Epoc32\release\winscw\udeb\z\private\10202be9\E8516B13.txt" -"!:\private\10202be9\E8516B13.txt"

Where E8516B13 is my App UID

In the pkg file..the application gets signed all right..but it doesnt get installed on the device..is it because of some capability issue..or something else?

Cheers
mayank

P.S. someone pointed out in Forum Nokia that the folder \private\10202be9\ doesnt exist on the device..i am not sure..coz we cant see the device files by any explorer!
Mon, 2007-04-16 15:17
Joined: 2004-11-29
Forum posts: 1233
Re: central repository
I really should shut up, since I don't really know anything about CenRep.

Though, you should be able to at least view what files are there in any browser, even though you might not be able to open them.

And I don't think its a good idea to specify ! for the destination in the pkg, what if the user choses to install on memory card?
I think you should specify C:

Assuming ofcourse it works to install CenRep keys like this, which I don't know if it does or not Smiley

  • Login to reply to this topic.