Import Registry pb ? morstcript - Windows Mobile Software Development

Hi all
i like to play with morstcript to personnalize my Rhodium..
to import the lnk of my manila (i use maxmanil with 20 lnk), i use that :
RunWait( "FS_TaskMgr.exe", "\App\Rom\Perso\Kwanice_Manila.reg" )
i add that to be sure there is no pb with htc sense
RegWriteDWord("HKLM","Software\Microsoft\Today\Items\HTC Sense", "Enabled","0")
RedrawToday
and
RegWriteDWord("HKLM","Software\Microsoft\Today\Items\HTC Sense", "Enabled","1")
RedrawToday
but i have always problem.. the shortcut on the home tab are not good...sometime yes sometime no..
can you explain why?
(if i use a .cab with only the registry value, it seems to work fine...)???
thanks for your help

no idea?
When you want to import .reg? you use mortscript? or a .cab file?
Or .xml files?

Since you're relying on a third party app to actually import the reg file maybe the problem isn't Mortscript but the app your script calls. You could always try another registry editor to import the file.
Also I think this can be done using Mortscript alone (with no 3rd party apps). You could try to make a registry import script using just Mortscript (a combination of If, ReadFile/ReadLine, ForEach, Split/Part/Replace, RegWrite and a couple of tricks should do it). reg files are actually text files so if needed you could always change the file it to make it easier for Mortscript to import.

frmariam said:
Since you're relying on a third party app to actually import the reg file maybe the problem isn't Mortscript but the app your script calls. You could always try another registry editor to import the file.
Also I think this can be done using Mortscript alone (with no 3rd party apps). You could try to make a registry import script using just Mortscript (a combination of If, ReadFile/ReadLine, ForEach, Split/Part/Replace, RegWrite and a couple of tricks should do it). reg files are actually text files so if needed you could always change the file it to make it easier for Mortscript to import.
Click to expand...
Click to collapse
yes good idea
but i have a lot of registry... it's easier to import reg if not i need to write all .reg line one by one...little boring..
or maybe there is another way to do that more simple? (i'm not an expert with mortscript^^)
but thanks for your help

You wouldn't write each registry entry. A script can be done to do all that work: read the reg file, parse each line (root, key/subkey, name/value, type), convert the text to Mortscript syntax and write it to the registry. But it would be a somewhat complex script and would take more time to write than writing 20 reg keys...

frmariam said:
You wouldn't write each registry entry individually. A script can be done to do all that work: read the reg file, parse each line (root, key/subkey, name/value, type), convert the text to Mortscript syntax and write it to the registry. But it would be a somewhat complex script I believe...
Click to expand...
Click to collapse
wow^^
i will try to find i understand alittle bit
thks

Related

How do you edit the registry

I have seen how to change the size of txt in a sms on Crossbow, but how do I edit the registry? I went to the Universal registry page but there was a tool only cabs or advice on which line to amend.
You need to install a registry editor app. There are a few about. TotalCommander is one. phmRegEdit another and I think there's one in the skbTools. Here's a good roundup:
http://www.pocketpcmag.com/blogs/menneisyys/UltimateRoundupOfRegistryEditors.asp

Can someone please post an example .reg file???

I'm trying to put together a .reg file that I can run after hard-resets which will automatically apply all of the custom reg tweaks that I usually have to perform by hand one at a time using a reg editor. After a few tries though in notepad, I think I am screwing up some formatting or something. I just can't seem to get them right so that the .reg file runs without errors.
Can someone please post an example .reg file with a couple different reg tweaks that I can then edit and add to in notepad so that I have a template to go from of how the reg entries need to be formatted within the .reg file?
Thanks!!!!!!!!!! Alex
in notepad;
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Today]
"Date"=dword:00000000
LEAVE THE LAST LINE EMPTY
Click to expand...
Click to collapse
THEN SAVE AS UNICODE....othewize it wont work.
file name example;
mysettings.reg
Thank you!
Also check out Mobile Registry Editor....I think its a wicked program.
thank you thank you thank you
absolutey had to post this to say thanks for Mobile Registry Editor. Made a change to my MDA Compact III and then corrected it remotely. Life saver.

NOOB TIME!!!!

How in heck do you import reg keys?
I thought, just transport them over and execute them.
I keep getting an error. "The specified file is not a Registry script"
And i somewhat did a search....brought up to many threads, none with a specific title as this issue.
Is there a reg hack to enable reg importing??
Mikey1022 said:
How in heck do you import reg keys?
I thought, just transport them over and execute them.
I keep getting an error. "The specified file is not a Registry script"
And i somewhat did a search....brought up to many threads, none with a specific title as this issue.
Click to expand...
Click to collapse
You just copy and execute them.
Incase they are not working, before you copy to your phone - right clik reg key and click edit type this in the first line of the registry key (in other words, it should be the first line):
REGEDIT4
save it, copy it to your phone and execute them. See if that works.
If it still does not work, open Resco Explorer and execute the file and hopefully that should work.
Good Luck !
All the above has been tried.
Mikey1022 said:
All the above has been tried.
Click to expand...
Click to collapse
Wierd.
What are you trying to do? Can you ellaborate, please?
I've never had a problem in importing registry keys.
It depends on the format of the registry key. You can't use normal Windows desktop format if I recall. The file must have a .reg extension (sure you checked that). Can you post a snippet of what your key format looks like?
The key must look something like this (exported from Reg Editor):
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Shell\StartMenu]
"Order"=hex(7):41,00,63,00,63,00,65,00,73,00,73,00,6F,00,72,00,69,00,65,00,73,00,00,\
00,42,00,6C,00,75,00,65,00,74,00,6F,00,6F,00,74,00,68,00,20,00,4F,00,70,00,\
74,00,69,00,6F,00,6E,00,73,00,00,00,47,00,61,00,6D,00,65,00,73,00,00,00,4F,\
00,66,00,66,00,69,00,63,00,65,00,20,00,4D,00,6F,00,62,00,69,00,6C,00,65,00,\
00,00,00
"Command"=":MSMRULauncher"
"Hide_Labels"=dword:00000000
"GridView"=dword:00000001
"SelectY"=dword:00000000
"SelectX"=dword:00000000
Import my old reg keys for links.
I used the CHome config to reorder the pages and fuked them up.
i updated the program today, so i am trying to import the keys back.
Instead of doing all those changes manually
Mikey1022 said:
Import my old reg keys for links.
I used the CHome config to reorder the pages and fuked them up.
i updated the program today, so i am trying to import the keys back.
Instead of doing all those changes manually
Click to expand...
Click to collapse
Can you post a snippet or two of what the old .reg files look like that you are trying to import?
Here you go.
REGEDIT4
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings]
"DisabledPlugins"="CMessage;CMusic;CMyPhotos"
"Plugins"="CClock;CTestUIPlugin;CHome;CAppointments;CLinks;CMyApplication;CWelcomeCenter;Settings;CMyFaves;CWindowsLive"
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings\CAppointments]
"ICONPATHS"="\windows\cal_s.png;\windows\cal_s.png"
"LocName"="Appointments"
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings\CAppointments\Images]
"chCalendar_allday_oof_conflict"="2257"
"chCalendar_allday_busy_conflict"="2257"
"chCalendar_allday_tentative_conflict"="2256"
"chCalendar_allday_free_conflict"="2257"
"chCalendar_appt_oof_conflict"="2257"
"chCalendar_appt_busy_conflict"="2257"
"chCalendar_appt_tentative_conflict"="2256"
"chCalendar_appt_free_conflict"="2257"
"chCalendar_allday_oof"="2255"
"chCalendar_allday_busy"="2255"
"chCalendar_allday_tentative"="2254"
"chCalendar_allday_free"="2255"
"chCalendar_appt_oof"="2255"
"chCalendar_appt_busy"="2255"
"chCalendar_appt_tentative"="2254"
"chCalendar_appt_free"="2255"
"chCalendar_addnewappointment"="2253"
"chCalendar_noappointments"="2252"
Click to expand...
Click to collapse
check with resco explorer if the file have ext (name).reg
Mikey1022 said:
How in heck do you import reg keys?
I thought, just transport them over and execute them.
I keep getting an error. "The specified file is not a Registry script"
And i somewhat did a search....brought up to many threads, none with a specific title as this issue.
Is there a reg hack to enable reg importing??
Click to expand...
Click to collapse
it does
Here check it out
Mikey1022 said:
Here check it out
Click to expand...
Click to collapse
mikey rename your .reg file to .ccs then execute them
Holy Cow, that worked
do you know why i wont import them the other way, though?
Mikey1022 said:
Holy Cow, that worked
do you know why i wont import them the other way, though?
Click to expand...
Click to collapse
no but some times this happons to me to
lol, i just recently got finished messing with my reg files because they weren't importing correctly. from what i can see from your registry snippet, and what fixed it for me was that i used mobileregistryeditor to export my keys, and it didn't add double \\, so it would import WindowsExplorer.exe instead of windows\explorer.exe. It was only once i exported with resco and compared the two that i noticed the missing extra \ in the exported files.
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings\ CAppointments]
"ICONPATHS"="\windows\cal_s.png;\windows\cal_s.png "
"LocName"="Appointments"
vs.
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings\ CAppointments]
"ICONPATHS"="\\windows\\cal_s.png;\\windows\\cal_s.png "
"LocName"="Appointments"
I used the same program.
I think i will be using resco to export them from now on.
Thanks, had the same problem, this works well
Solved my problem, thanks to both of you.
bigteribletexas said:
lol, i just recently got finished messing with my reg files because they weren't importing correctly. from what i can see from your registry snippet, and what fixed it for me was that i used mobileregistryeditor to export my keys, and it didn't add double \\, so it would import WindowsExplorer.exe instead of windows\explorer.exe. It was only once i exported with resco and compared the two that i noticed the missing extra \ in the exported files.
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings\ CAppointments]
"ICONPATHS"="\windows\cal_s.png;\windows\cal_s.png "
"LocName"="Appointments"
vs.
[HKEY_LOCAL_MACHINE\Security\CHome\DefaultSettings\ CAppointments]
"ICONPATHS"="\\windows\\cal_s.png;\\windows\\cal_s.png "
"LocName"="Appointments"
Click to expand...
Click to collapse
rickwyatt said:
mikey rename your .reg file to .ccs then execute them
Click to expand...
Click to collapse
Try to put this string in the first line instead of REGEDIT 4
Windows Registry Editor Version 5.00
All my .reg files have this and I have no problem importing
Hope it was helpful
Cheers
germansak said:
Try to put this string in the first line instead of REGEDIT 4
Windows Registry Editor Version 5.00
All my .reg files have this and I have no problem importing
Hope it was helpful
Cheers
Click to expand...
Click to collapse
this was the same thing i was going to suggest. I was having the same issues as mikey and when i changed from REGEDIT4 to Windows Registry Editor Version 5.00 the keys i was trying to import worked!
thats really weird

[rgu support] WinCE Registry Editor (mRegEdit), v.0.5.5

[Updated 21.02.10] New version 0.5.5 with rgu support !!!
WinCE Registry Editor (mRegEdit), v.0.5.5
Description:
An application to work with registry files with MDI graphic interface.
- supported files: .hv, .rgu
- not supported yet: .reg, .provxml, .fdf
Release history:
---------------------
V. 0.5.5
+ Support .rgu files
V. 0.5.4
+ Added search function
V. 0.4.0 (Beta)
Thanks will try
New version 0.5.4 with search function !!!
New version 0.5.4 with search function.
AnDim
Nice App Work with it right Now it's really nice
Thanks
Hi AnDim,
Nice tool to use in combination with the htcRIE tool. Thank you for that! Anyway you could make it possible to import reg- or rgu-files? That would make this even better!
Cheers,
/Cacti
Support .rgu files
Very nice utility, thank you for this.
I am using it on Windows 7 and one thing I did notice is that when browsing for a file to open it did not show any of the .rgu files. I had to go to the Files and Folders options on my computer and uncheck the option to Hide Protected Operating System Files. Using Ervius Visual Kitchen, I do not have to do this so maybe there is a option somewhere that can be set in the code to show all of the files? Would be great to include this as an option somehow.
Thanks for the new relase
Whats up with some keys being in red color?
And what does the program do when inside the file exist two value names with the same value data in the same key?
It keeps the last one?
Like this:
[HKEY_CURRENT_USER\ControlPanel\Sounds\VTCallWaiting]
"Category"="InCall"
"Category"="Ring"
Thanks.
Edited...
It seems that the keys in red are the keys that will be deleted.
And the last one is kept.
Could you add an option to ask the user which value to keep?
I'm not getting how to use this. How do I connect to my device? I assumed I had to find the default or user.hv files, but I cannot find them.
Thraka said:
I'm not getting how to use this. How do I connect to my device? I assumed I had to find the default or user.hv files, but I cannot find them.
Click to expand...
Click to collapse
Copy them to your desktop (out of \windows).
When should we expect a newer version? Any thoughts on my suggestion on my previous post?
Please add import rgu option it would be very useful anyway thanks for this great app
thank you .............
Hello,
This tool is fantastic. It's the only program that allowed me to change my .hv files without problems (I tried CeRegEditor and manual RGUcomp but all these methods failed in my case).
The only thing I miss is the possibility to import data from rgu/reg or even txt. Pleeeease
Regards
Skrobel

HTC G-sensor lists.cab

I installed this tweak and it did what it said it would, but I need to add more apps to the "whitelist." Is there an actual file that can be edited to do this, and if so, where is it and what is it called? If all this cab does is modify the registry, what keys did it modify?
extract the cab file and use a notepad like editor to open up the files from the cab - there u can see what it edits in the registry (as i remember there is existing some keys in the registry for what you want - dont ask me where - i cannot remember anymore)
Yeah, I just downloaded WinCE Cab Manager and used it for something similar. Thanks.
here is my list i always use... i got it off xda somewhere and added a few things.

Categories

Resources