Re: Registry persistence in CE 6



Thanks for your answers Bruce and Huang!!!

Both hints where useful but none of them solved completely the
problem...

There is a MountAsBootable Storage profile setting for indicating OS to
load persistent registry setting from the volume.

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\<YourCFDiskProfile>\FATF­S]
"MountAsBootable"=dword:1

When setting MountAsBootable = 1, I see that there is a "Documents and
Settings" folder in the first partition of the compact flash and
another "Documents and Settings" folder in the "Device" directory.
I run the application that calls RegFlushKey() and everything looks
fine, but the registry hives are not updated, so that if I restart the
device no changes on the registry have been saved.


In CE 6.0, there is also a interesting environment variable
PRJ_ENABLE_FSREGHIVE which is needed to move the location out of the Object
Store.

When trying with PRJ_ENABLE_FSREGHIVE. The compact flash is
duplicated. I mean, I see four folders, instead of two. Two for each
partition. Two of them are defined with the name specified in
[HKEY_LOCAL_MACHINE\StorageManager\Profile] ("Storage Card" and
"Storage Card 2") and the other two are named as specified in
[HKEY_LOCAL_MACHINE\StorageManager\Profile\HDProfile]("CF" and "CF2").
If I call RegFlushKey() the registry hive is updated and when
restarting the device I see that the registry persisted.


Any idea about how I can solve the problem???

Thanks again for your help.




.



Relevant Pages

  • Re: Windows XP Pro is FUBARd!!! Help!
    ... Which registry key/entry did you remove, ... this generally has to do with Norton Systemworks 2003 Pro. ... > So I said to myself, "Self, use System Restore". ... Upon restart, the blue screen of death came back. ...
    (microsoft.public.windowsxp.general)
  • Re: After upgrading 2000 server to 2003 server keeps restarting
    ... edit the registry directly using another system. ... Product Support Services ... |Subject: Re: After upgrading 2000 server to 2003 server keeps restarting ... |> The automatically restart issue is actually a blue screen stop issue (we ...
    (microsoft.public.windows.server.migration)
  • Re: After upgrading 2000 server to 2003 server keeps restarting
    ... function to change the problematic system's registry. ... Product Support Services ... |> |> The automatically restart issue is actually a blue screen stop issue ... |> |> component, such as a device driver, backup software or anti-virus ...
    (microsoft.public.windows.server.migration)
  • Re: Message "Aborted." Between Windows Splash Screen and Welcome S
    ... I checked the settings of each of these and there are no settings set to ... I decided to check my registry for all entries having to do with chkdsk, ... to do with defragmenting the registry on next-boot or every restart. ... run only if certain parameters are met (sort of like some defrag programs ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Getting rid of residual adware/spyware elements
    ... > The link you pointed me to discusses emptying the Temporary Internet File ... Restart in Ms-Dos Mode ... > However, this folder is appearing in the Windows Temp folder, not the TIF ... >>> took some screen shots of my registry and manually made the changes ...
    (microsoft.public.security.virus)