Re: Deleting a registry key in Win CE 6.0 (.net)
- From: "Bruce Eitman [eMVP]" <beitman.nospam@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 4 Feb 2008 08:30:08 -0500
I agree with Chris, but look in common.reg for PRJ_ENABLE_REGFLUSH_THREAD
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
"Arun" <arun.kapse@xxxxxxxxx> wrote in message
news:673ea108-0138-4902-be8d-186e64608c69@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Bruce,
Thanks for your reply.
We have tried the first two options which you have mentioned.
However, for this we need to manually suspend/run the app.
I was just wondering if it is possible to persist the reg settings
automatically.
And how do we enable the option 3, which you have said below?
Thanks
Arun
On Jan 31, 7:27 am, "Bruce Eitman [eMVP]"
<beitman.nos...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
You *must* tell the system to persist the registry. All that you have
done
is to enable the persistance.
To tell the system to persist you can:
1. Suspend, which persists the registry if any changes have been made
2. Call RegFlushKey() from an app
3. Set up the system to persist the registry on a timed bases. This is
done in the registry, although I don't necessarily recommend this.
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
"Arun" <arun.ka...@xxxxxxxxx> wrote in message
news:71e4205e-620a-4e65-9384-1c3389035288@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello All,
I'm working on Wince 5.0 .
I have added the Hive based Registry(SYSGEN_FSREGHIVE) for the
platform.
and also added the following PRJ variables to enable storing of
registry entries on the Hive registry.
PRJ_BOOTDEVICE_MSFLASH=1
PRJ_ENABLE_FSMOUNTASROOT=1
PRJ_ENABLE_FSREGHIVE=1
On the device, any settings made are not getting saved, when we reboot
the device, they are gone.
For example, if we create a new dial-up connetion or change the
wallpaper or anything and reboot the device, next time we dont see
those changes.
However, If we suspend and reboot, we see the new settings.
Can you help me in this regard?
Thanks
Arun
On Jan 24, 2:49 pm, batva...@xxxxxxxxx wrote:
Hi ,
Now, after defining PRJ_ENABLE_FSREGHIVE, it works - I can persist
theregistry(thanks to Bruce) ...
Ivan
On Jan 22, 5:38 pm, batva...@xxxxxxxxx wrote:
Thanks Bruce,
It is very nice of you for trying to help me.
So, basically I need to define PRJ_ENABLE_FSREGHIVE = 1 in my
environmental variables I guess...
I was going to try this, but in mean time I installed Win CE 6.0 R2
and updates an now nothing is working - image compiles but after
loading it, Windows CE displays the GUI but no text at all....
Anyway, after I fix this, I will give it a try...
Thanks again.
On Jan 22, 10:40 am, "Bruce Eitman [eMVP]"
<beitman.nos...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
You know that if you were to answer my questions we could have had
this
solved days ago.
You have made some assumptions that are simply not true, and then
not
answered my questions in which I was trying to identify what was
going on.
First: HIVE != persistent
Second: RAM means stored in RAM, of course your little
demonstration
points
out that what I should have said was Filesystem Root, which
typically
means
RAM, but in your case you got lucky on one board and put it on a
storage
key.
As I pointed out four days ago, but you ignored, the
HIVEregistrydefaults
to RAM in CE 6.0 and you must change that. Check your
PRJ_ENABLE_FSREGHIVE
in common.reg.
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
<batva...@xxxxxxxxx> wrote in message
news:4a636fa6-719a-480f-80b3-bbdbcee408db@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Wherever specified in \hkey_local_machine\init\bootvars\ - in my
case
the file is in the "\Registry" folder, or after the modificiation,
in
"\Hard Disk\Registry"
Another weird thing was that this change (changing to \Hard Disk
\Registryfolder) worked on one device, and did not work on another
one - exact same hardware, exact same image nk.bin.
On Jan 21, 7:58 pm, "Bruce Eitman [eMVP]"
<beitman.nos...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
The file is where?
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
<batva...@xxxxxxxxx> wrote in message
news:05834cbf-1748-4e29-ac58-3ed1cefa1b96@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The file is there. Another funny thing - I changed the following
values theregistrykey \hkey_local_machine\init\bootvars\
PROFILEDIR - changed from \Registryto \Hard Disk\Registry
SYSTEMHIVE - changed from \Registry\system.hv to \Hard
Disk\Registry
\system.hv.
Now, the changes I make to theregistrydo get persisted after
Iflush
them. I am not sure why it works. The problem here is that on
some
target devices, when I do this, it renames the Hard Disk to
HardDisk2,
and creates a new folder named Hard Disk. No idea why, and the
strange
thing is that the \hkey_local_machine\system\storage
manager\profiles
\HDProfile - the Folder setting is still Hard Disk, not Hard
Disk2.
Very frustrating.
Ivan
On Jan 21, 1:03 pm, "Bruce Eitman [eMVP]"
<beitman.nos...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
So, where is your persistent hive stored? Look for system.hv
(a
hidden
file, so show hidden files)
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
<batva...@xxxxxxxxx> wrote in message
news:d02e154c-6935-4c72-977a-6e8b17b79a11@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Bruce,
In my Platform Builder I can see Hive-basedRegistryand RAM
based
registry- I choose the Hive based. Now, I am not sure if hives
can
still be in RAM and need some flushing mechanism - from what I
read,
they are supposed to use the file system, so right now I am
trying to
find out what is wrong with my setup.
Ivan
On Jan 18, 5:30 am, "Bruce Eitman [eMVP]"
<beitman.nos...@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Do you really have a persistentregistryin your 6.0 build?
The
default
is
to put the hives in RAM.
--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
<batva...@xxxxxxxxx> wrote in message
news:02b6f4cd-5daa-4c9d-a4d0-dd87eda3651d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Also, I am not able toflushtheregistrykey in the persistent
storage. I am using the RegistryKey.Flushand also unmanaged
RegFlushKey but data is not flushed. Also, in this case I
did
not get
any exception - just after rebooting, data that was supposed
to
be
flushed is not in theregistry.
Any input is highly appreciated.
Ivan
On Jan 17, 2:53 pm, batva...@xxxxxxxxx wrote:
Hi
I am trying to delete programatically a particular
third-party
registrykey using the DeleteSubKey method. I was able to do
this in
Win CE5.0and .net 2.0, but now I am switching to win CE
6.0
and I
get UnauthorizedAccessException. Is there a way to change
the
user
access settings for this key? There is a SetAccessControl
method but
it is not supported in CE. Any other method that I can
use?
I am also not able to delete the key and its parent key
using
a
registryeditor tool, however I am able to delete the
grand-parent
key...
Thanks
Ivan- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -
.
- References:
- Prev by Date: Re: x86 romboot vs BIOS
- Next by Date: Re: x86 romboot vs BIOS
- Previous by thread: Re: Deleting a registry key in Win CE 6.0 (.net)
- Next by thread: SD Card winCe 5.0 Device Driver Doubts
- Index(es):
Relevant Pages
|