Originally Posted by
alal
however if I can figure out how to do a clean boot - that would hopefully work right ?
Let me see if I can figure out how to use shell.ini to initiate a clean boot
If you have evaluated that device notices and executes file shell.ini at startup, then you might use Mortscript - a script processor.
To completely empty the registry - which in turn forces a clean boot - you would run a script "RegistryFixer.mscr" as following:
Code:
// Clean the entire registry
@RegistryDelete("HKLM","")
@RegistryDelete("HKCR","")
@RegistryDelete("HKCU","")
// Make sure device's initial default values get imported
RunWait("RestoreDefaultHiveFromROM.exe")
//Some devices with hive-based registries don't save registry
//changes to disk until instructed to
RunWait("RegFlushKey.exe")
Reset
Exit
Sub RegistryDelete(root,key)
Local()
ForEach variable In RegSubkeys(root,key)
RegDeleteKey(root,variable,1,1)
Sleep(1)
EndForEach
EndSub
You put into root of SD-card Mortscript.exe, Autorun.exe. You rename Autorun.exe to RegistryFixer.exe. You create an ANSI text-file containing the lines of code printed, rename it to RegistryFixer.mscr and put it into root of SD-card, too. Finally you edit launcher-file shell.ini which also must be in root of SD-card as following: "\<name-of-sdcard>\RegistryFixer.exe" - without the quotes, where you replace term <name-of-sdcard> with CE's name of storage card, ex. Storage Card.
Not to forget, you also have to put files "RegFlushKey.exe" and "RestoreDefaultHiveFromROM.exe" into root of SD-card. These two EXEs you'll find in
Good luck!
Warning: Running a script as printed above may unrecoverably brick your device. You run it at your own risk!
P.S:
Concerning Mortscript: It's far out of this thread's scope to go into more details here ...
Bookmarks