regedit don't memorize changes

Support for PocketPC and WinCE version

Moderators: white, Hacker, petermad, Stefan2

Post Reply
boostpt
Junior Member
Junior Member
Posts: 4
Joined: 2009-09-11, 11:36 UTC

regedit don't memorize changes

Post by *boostpt »

hello.

I have a problem. my devide ir becker 7827 with wince 5.0

after I make some changes in my data with regedit, all goes well until I shut down the devide.

when it starts again, all data seems to undo all changes that I made earlier.
It seems that in the startup it runs a reset comand that puts all the data as it came as new.

do you have any ideia how to make the device to memorize the changes?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Did you make a soft reset or hard reset? On a hard reset, all user data is reset, including the registry.
Author of Total Commander
https://www.ghisler.com
boostpt
Junior Member
Junior Member
Posts: 4
Joined: 2009-09-11, 11:36 UTC

Post by *boostpt »

ghisler(Author) wrote:Did you make a soft reset or hard reset? On a hard reset, all user data is reset, including the registry.
No. I don't make neither one.

this is strange.
If a put a file in the windows directory, that file is erased when I shut down the device.
I think that every time that the gps is turned on, it seems like the windows is reinstalled again and again.

is possible that the installation windows is hidden in a folder or in the device memory and the changed files are replaced every time that the windows restarts?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That would be rather unusual. How about the program directory (program files)?
Author of Total Commander
https://www.ghisler.com
boostpt
Junior Member
Junior Member
Posts: 4
Joined: 2009-09-11, 11:36 UTC

Post by *boostpt »

all folders are reseted every time that gps starts:
my documents; program files; windows.. all these are replaced in startup.


the folder "my flash disk" is not replaced. it keeps all changes that I make
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I see - is there an Autostart/Startup folder which would allow to launch a program automatically? This could be used to add the changes to the registry automatically.
Author of Total Commander
https://www.ghisler.com
boostpt
Junior Member
Junior Member
Posts: 4
Joined: 2009-09-11, 11:36 UTC

Post by *boostpt »

ghisler(Author) wrote:I see - is there an Autostart/Startup folder which would allow to launch a program automatically? This could be used to add the changes to the registry automatically.
yes there is.

the gps autostart a application named shell.exe.
That application is stored in "\my flash disk\....", so I can change that aplication to what ever I want (with the same name of course).
At this moment it runs the explorer.exe. I rename it to shell.exe and so it runs automatically when it starts.

I thought in an applications named MortScript.exe. I rename it to shell.exe and it would run automatically a script.

It runs a script stored in a file. But i'm not a expert in that commands.

I've already tried to run some script that imports some lines with changes to registry. but it does't work:

Run ( "\My Flash Disk\programas\TRE.exe -s \My Flash Disk\programas\exports_1.reg" )

Run ( "\windows\explorer.exe" )

the second line works ok, but the first does not.

TRE.EXE is a regedit program, version 0.82
exports_1.reg contains the lines that I want to import to registry.

I dont know if the command is ok or not. I cannot find a help file for TRE.EXE

can you help me in these commands?

thanks
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The first fails because of the spaces in the name. I just checked the syntax of your scripting tool MortScript.exe, and it seems that you need to write it like this:
Run( Applikation [, Parameter ] )

so in your case it would be

Run ( "\My Flash Disk\programas\TRE.exe", "-s \My Flash Disk\programas\exports_1.reg" )
Author of Total Commander
https://www.ghisler.com
siealex
Senior Member
Senior Member
Posts: 278
Joined: 2009-03-22, 16:36 UTC

Post by *siealex »

After applying the registry changes, WAIT about 3..5 minutes before pressing reset. The changes are cached in RAM and are not written immediately to FLASH memory.
We are not so S.M.A.R.T. as we imagine...
Cheetah
New Member
New Member
Posts: 1
Joined: 2011-01-28, 04:55 UTC

Post by *Cheetah »

Hi,..
Using XP Pro SP2. I deleted the key
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run MSMSGS to
eliminate the pop up messages. But after windows restart (or shut down) the
key is back in the registry. Why are my changes saved?

thanks,..
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The registry is cached in memory by the system, and only written to flash after some time - sorry, I don't know the exact amount of time. I have been looking for a function to flush the registry to disk, but didn't find anything yet...
Author of Total Commander
https://www.ghisler.com
Post Reply