central repository
| Thu, 2005-10-13 14:34 | |
|
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 |
|






Forum posts: 33
What SDK is this? What device are you targetting? Is this on-device, or in the emulator?
Forum posts: 36
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
Forum posts: 124
Forum posts: 36
Forum posts: 149
Nope! UTF16 is a multi-byte encoding. Windows notepad was created, probably circa 1993. Try Wordpad or maybe Word.
-euroq
Forum posts: 36
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
Forum posts: 36
thanks for that tip on the unicode shit that was my major problem.
Forum posts: 4
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
Forum posts: 124
Forum posts: 214
"I only know that I know nothing." (Socrates)
Forum posts: 148
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
Forum posts: 1233
That is; put it in the pkg file and let the installer copy it to the right place?
Forum posts: 148
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!
Forum posts: 1233
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