regedit don't memorize changes
Moderators: Hacker, petermad, Stefan2, white
regedit don't memorize changes
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?
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?
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
No. I don't make neither one.ghisler(Author) wrote:Did you make a soft reset or hard reset? On a hard reset, all user data is reset, including the registry.
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?
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That would be rather unusual. How about the program directory (program files)?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
yes there is.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.
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
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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" )
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com