Exe file for change the value os a registry entry? - Windows Mobile Development and Hacking General

Is it possible to create an exe file, that when run on the PPC (Blackstone with WM6.1), change the value of a registry entry?
Is for change the value HKCU\Software\Microsoft\Activesync\KeepAlive from 1 to 0
Thanks.

You can create a cab file for this.

Byrkoff said:
Is it possible to create an exe file, that when run on the PPC (Blackstone with WM6.1), change the value of a registry entry?
Is for change the value HKCU\Software\Microsoft\Activesync\KeepAlive from 1 to 0
Thanks.
Click to expand...
Click to collapse
dotfred's taskmanager for importing reg files (containing a set of registry keys
registrysetstring for setting just a single registry key
mortscript

egoist6 said:
dotfred's taskmanager for importing reg files (containing a set of registry keys
registrysetstring for setting just a single registry key
mortscript
Click to expand...
Click to collapse
RegistrySetString is perfect to change any string-value, but I want to change an integer-value (Base decimal). Help, please.

come on. show more enthusiasm and check the other websites...
if you use taskmgr:
create a reg-file "myvalue.reg":
Code:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Activesync]
"KeepAlive"=dword:00000000
and import the reg file:
Code:
taskmgr.exe myvalue.reg
if you use morstscript:
Code:
RegWriteDWord("HKCU", "Software\Microsoft\Activesync", "KeepAlive", "0")

Here is a code i published while ago.. its in C#
you can change it to your needs :
http://forum.xda-developers.com/showpost.php?p=3304680&postcount=11

Thanks. MortScript is the best.

Related

[APP] VipRegExport 8.0 Registry backup Utility based on ini file

I have created small utility Called VipRegExport.
Requirement : .netCF 2.0 higher
What Utility Do
It reads input ini file and create registry export per section for every values in that section. It saves registry in .reg file.
Sample ini file
# Secion name will file name to be export registry values in it
# this is how you can comments
[MyKeys]
F01=HKLM\Software\Microsoft\Shell\Keys
F02=HKCU\Software\Microsoft\Today\Keys
#Setting for all third party software
[MySoftware]
F03=HKCU\Software\HButton
F04=HKCU\Software\waku
F05=HKEY_CURRENT_USER\Software\TodayAgenda
F06=HKEY_CURRENT_USER\Software\pocketMax
F07=HKEY_CURRENT_USER\Software\AlenSoft
F08=HKCU\Software\Microsoft\Shell\TaskSwitch
F09=HKLM\Software\ThrottleLauncher
F10=HKEY_CURRENT_USER\Software\Parlingo
F11=HKEY_CURRENT_USER\Software\Mort
F12=HKEY_CURRENT_USER\Software\Ghisler
F13=HKEY_CURRENT_USER\Software\FdcSoft
F14=HKEY_CURRENT_USER\Software\CallCalendar2
F15=HKEY_LOCAL_MACHINE\SOFTWARE\SHEALD
F16=HKLM\Software\HTC\HTCHome\Weather\Settings
F17=HKEY_LOCAL_MACHINE\Software\Pointui
F18=HKEY_LOCAL_MACHINE\Software\WiFiFoFum
F19=HKLM\Software\Apps\VicSoft ClearTemp
F20=HKEY_LOCAL_MACHINE\Software\Saman
[MyExtention]
F21=HKEY_CLASSES_ROOT\.mscr
F22=HKEY_CLASSES_ROOT\.mortrun
F23=HKEY_CLASSES_ROOT\MortScript
F24=HKEY_CLASSES_ROOT\.mbi
F25=HKEY_CLASSES_ROOT\MortButtonInfo
F26=HKEY_CLASSES_ROOT\.reg
F27=HKEY_CLASSES_ROOT\regfile
F28=HKEY_CLASSES_ROOT\.pdf
F29=HKEY_CLASSES_ROOT\AdobeReaderLE.2
[MySetting]
S01=HKLM\Software\Softick\Card Export\RunTrayClientAtStartup
S02=HKLM\Software\HTC\PHONE\BatteryIconLevel
S03=HKLM\Software\HTC\PHONE\bShowBatteryIcon
S04=HKCU\Software\Microsoft\Internet Explorer\Main\Default storage location\All Files
S05=HKCR\SystemFileAssociations\image\shell\save\Save Location\Default
S06=HKCR\SystemFileAssociations\audio\shell\save\Save Location\Default
S07=HKCR\SystemFileAssociations\video\shell\save\Save Location\Default
S08=HKCU\Software\HTC\Camera\4.00\Strings\Save Location
S09=HKLM\Software\HTC\Camera\General\EnableDCIM
S10=HKLM\Software\HTC\SUPL AGPS\EnableAGPS\Assisted GPS
S11=HKLM\Software\HTC\SUPL AGPS\EnableAGPS
S12=HKCU\ControlPanel\Phone\ShowSIM
S13=HKEY_CURRENT_USER\ControlPanel\BackLight\QKeyLedTimeout
S14=HKLM\Software\OEM\Power\ShowMovingChargeBar
S15=HKCU\ControlPanel\Sounds\RingTone0\Sound
S16=HKCU\ControlPanel\Sounds\RingTone0\script
S17=HKCU\ControlPanel\Sounds\RingTone0\Category
S18=HKLM\Security\Policies\Policies\0000101a
S19=HKLM\Software\Microsoft\Shell\ShowTitleBarClock
S20=HKCU\Software\Microsoft\Today\Skin
S21=HKCU\ControlPanel\Keybd\DefaultKeyLock
S22=HKLM\Software\HTC\HTCHome\TabSetting
Click to expand...
Click to collapse
There are three command line arguments supported
argument 1 : <inifilename including path> if not given then default is VipRegExport.ini
argument 2 : <Output Folder name including path> If not given default Application Folder
argument 3 : <slient Option> Default is 'N'. If you want to run in slient option then pass third parameter as "Slient"
What is slient option : It will not display any error message like "Registry key does not exist to export" and exit application after export completes.
GUI also gives ability to select input file as well output Folder.
HKEY_LOCAL_MACHINE\Security\Policies\Policies\000010a will export just one key 0000101a in HKEY_LOCAL_MACHINE\Security\Policies\Policies
where as F03=HKEY_CURRENT_USER\Software\HButton will export all keys and subkeys under that registry.
Basically if you want to export full registry including all subkeys and values then put actual key name in value If you only want to just export single keyvalue in specific registry then put keyname\valuename.
It also support HKCU, HKLM, HKCR, HKUS formats as well.
Restriction : Currently export can not export some new registry type like reg_multi_size etc but so far none of my registry values that I needed to export are of those type they mostly String, int, and binary value they all are supported.
Above restriction is removed. Now utility support all types of Registry. Credit Goes to Elemris craetor Kheb. ELemris Thank for helping me out on and sharing your code.
Uploaded new version
Now you can export entire registry with below in INI file
[MyFULLRegistry]
F01=HKLM
F02=HKCU
F03=HKCR
Version 8.0
Fixed "\" in key reported in post # 10
Version 9.0
Quick Fixed "@" in key http://forum.xda-developers.com/showpost.php?p=8347552&postcount=10
If you like my work then please consider donating
FAQ:
Do we need to put F01, F02..... what's happening if I have 2 F01?
F01, F01, F03 is just key in ini File It is not used any where in Program but it is needed in ini file as they are part of ini like section , key and value
Posted Version 4.0
Posted Version 4.0
posted new version 6.0.
Completely working. no restriction any more.
Interesting, thanks.
just one question, then.
So using:
[MyKeys]
F01=HKLM
F02=HKCU
F03=HKCR
will make complete registry dump? in one file?
I wouldn't ask, but i just cannot test it at this moment..
Can not export all reg's at present but i will include in next version
pupakota said:
Interesting, thanks.
just one question, then.
So using:
[MyKeys]
F01=HKLM
F02=HKCU
F03=HKCR
will make complete registry dump? in one file?
I wouldn't ask, but i just cannot test it at this moment..
Click to expand...
Click to collapse
New version can export entire registry
Strange,
F50=HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila\Configuration
returns an empty key
I have a question:
Do we need to put F01, F02..... what's happening if I have 2 F01?
F01, F01, F03 are basic part if inin and they are needed.
romualdrichard said:
Strange,
F50=HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila\Configuration
returns an empty key
I have a question:
Do we need to put F01, F02..... what's happening if I have 2 F01?
Click to expand...
Click to collapse
F01, F01, F03 is just key in ini File It is not used any where in Program but it is needed in ini file as they are part of ini like section , key and value
F50=HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila\Configu ration
Click to expand...
Click to collapse
notice that space between configu
and
ration
here.
Tipo here only. I found that it tries to write this key but I have:
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Manila] instead and empty.
Maybe the key is locked or something like that.
\\ are not written correctly I think in name of keys?
I tried to backup F10=HKEY_CURRENT_USER\Software\FdcSoft (pimBackup settings) and found that the custom list (folders list) does not have \
I have "\Windows\Rings\*.*"=dword:00000001 in the backup reg
But after, in the reg I have WindowsRings*.*
Looks like, the import (from sktools) needs \\ to save \...
Actuly it was fixed in version 7.5 but i did not released it.
It is now fixed in new version 8.0
Hi,
May be a good option would be to have an information in the .ini to set the export directory when you load the ini.
romualdrichard said:
Hi,
May be a good option would be to have an information in the .ini to set the export directory when you load the ini.
Click to expand...
Click to collapse
I will add in next version. Right now planning to add WAP export e.g emails setting, wi-fi setting etc exported to xml
Hi v3patel,
stuff like this must be a sticky, because it helps us devs a little bit. Ok there are more other things, but not based on a ini file. With that and mort i have done now two tests and they look really good. I hope you will support it further. And when i read your last post (top on my one) then it is very interesting. Thank you for sharing with us...

REG Problem!

Hi there!
I'm having a problem with a reg file I would like to apply to my Touch HD.
I got installed the "PHM RegEdit" application and if I click the reg file, the application launches and I can not apply the changes.
If I uninstall "PHM RegEdit", I click on the reg file again and the device says that there is no application for such a file.
What can I do?
Greetings!
reg files is just text files you can open it in a text editor and
create or alter the registrys manualy to fit what the reg file include
Thanks for the answer.
I know that, but this reg file has many value changes, it would be better if I can apply it automatically.
Please! Anyone?
Is there another application to apply this reg files?
PHM RegEdit doesn't seem to work.
Greetings!
FdcSoft TaskManager by dotfred
simply post your regfile or copy/paste it here so that we can have a look at it

How to extract *.reg files?

How do I extract *.reg files to use with sashimi and UC? Thanks in advance.
With a reg editor Resco etc
stylez said:
With a reg editor Resco etc
Click to expand...
Click to collapse
Resco reg editor only have the option to import.
CERegistryEditor, download here, you can export/import & edit registry from your PC. Make sure to change the save as extention on exporting. It is defaulted to .cereg.
You can also export .reg-files with Total Commander. Just go to the desired key, select 'Copy' and 'Paste' it on your filesystem to save the key to the desired location.
As you are using SASHIMI, there is a registry editor just inside the programs folder of SASHIMI, and you can use it to import/export any registry, whole key, or single string or dword.

How to create automatic reg key ?

Hello,
How can I create a automatic reg key with this values:
HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Sys
Add the DWORD setting COD=5374476
And how can I make this file installable, as XML or CAB ?
I want to use this file to make the reg change when I installed a new ROM ...
I don't want to use regeditor all the time, it should be easier
Suggestions ?
Use this mate...
http://forum.xda-developers.com/showthread.php?t=400221
You can make a cab file with as many registry changes as you like and then just run that whenever you need to apply them.
Hope it helps
xivius said:
Hello,
How can I create a automatic reg key with this values:
HKEY_LOCAL_MACHINE\Software\Microsoft\Bluetooth\Sys
Add the DWORD setting COD=5374476
And how can I make this file installable, as XML or CAB ?
I want to use this file to make the reg change when I installed a new ROM ...
I don't want to use regeditor all the time, it should be easier
Suggestions ?
Click to expand...
Click to collapse
Or just install this .cab
View attachment 288037
Grtz,
Degake
degake said:
Or just install this .cab
View attachment 288037
Grtz,
Degake
Click to expand...
Click to collapse
THANKS!

Create a single cab out of multiple reg entries

Hey guys, I'd like to combine all my registry edits in to 1 single installable cab file. How can I do this? I have several regedits eg:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]"Hide"=dword:0
HKCU\ControlPanel\Keybd and change DeviceLockWhenSuspend to 0
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS and Change - CacheSize to 4096
As you can see, they are stored in my list of tweaks in plain English.. how can I make a properly formatted list of all of them and then make a cab that will install to my PPC and change all the appropriate reg entries.
Thanks in advance!
the7thson said:
Hey guys, I'd like to combine all my registry edits in to 1 single installable cab file. How can I do this? I have several regedits eg:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]"Hide"=dword:0
HKCU\ControlPanel\Keybd and change DeviceLockWhenSuspend to 0
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS and Change - CacheSize to 4096
As you can see, they are stored in my list of tweaks in plain English.. how can I make a properly formatted list of all of them and then make a cab that will install to my PPC and change all the appropriate reg entries.
Thanks in advance!
Click to expand...
Click to collapse
google ceregeditor. It will turn registry entries into a cab for you.
mwalt2 said:
google ceregeditor. It will turn registry entries into a cab for you.
Click to expand...
Click to collapse
Yes I actually am using ceregeditor. I can turn a single reg entry into a cab but I'm not sure how I can make a collection of regedits in to one cab file using that software. Could you point me in the right direction?
the7thson said:
Yes I actually am using ceregeditor. I can turn a single reg entry into a cab but I'm not sure how I can make a collection of regedits in to one cab file using that software. Could you point me in the right direction?
Click to expand...
Click to collapse
Just place your regedits in a text file and save it as something like filename.reg. Then open the reg file with ceregeditor and use the convert to cab option. Make sure your reg file is in the proper format (like what you get if you export the registry keys).
So:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]
"Hide"=dword:0
etc
etc
mwalt2 said:
Just place your regedits in a text file and save it as something like filename.reg. Then open the reg file with ceregeditor and use the convert to cab option. Make sure your reg file is in the proper format (like what you get if you export the registry keys).
So:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]
"Hide"=dword:0
etc
etc
Click to expand...
Click to collapse
Excellent, thank you!! I will try this out tonight.
Also - is there any way I can DELETE any existing reg entries using this method?
And then I assume I can create new entries using this method also?
Thanks again.
the7thson said:
Excellent, thank you!! I will try this out tonight.
Also - is there any way I can DELETE any existing reg entries using this method?
And then I assume I can create new entries using this method also?
Thanks again.
Click to expand...
Click to collapse
I'm not sure about using this in a cab, but using .reg files, is possible to delete Keys(including SubKeys and Values) or just a specific Value from a Key.
Consider the following registry entry as an example:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]
"Hide"=dword:0
To delete a Key create a reg file with the following:
Code:
REGEDIT4
[COLOR=seagreen][B][[COLOR=red]-[/COLOR]HKEY_LOCAL_MACHINE\ControlPanel\Pen][/B][/COLOR]
To delete a Value from a Key create a reg file with the following:
Code:
REGEDIT4
[COLOR=seagreen][HKEY_LOCAL_MACHINE\ControlPanel\Pen][/COLOR]
[B][COLOR=royalblue]"Hide"=[/COLOR][COLOR=red]-[/COLOR][/B]
Thanks to Mr. Makk and his tutorials thread for the Value delete (I was only aware of the Key delete from analysing RGUs)
Cheers,
FInixNOver
FInixNOver said:
I'm not sure about using this in a cab, but using .reg files, is possible to delete Keys(including SubKeys and Values) or just a specific Value from a Key.
Consider the following registry entry as an example:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]
"Hide"=dword:0
To delete a Key create a reg file with the following:
Code:
REGEDIT4
[COLOR=seagreen][B][[COLOR=red]-[/COLOR]HKEY_LOCAL_MACHINE\ControlPanel\Pen][/B][/COLOR]
To delete a Value from a Key create a reg file with the following:
Code:
REGEDIT4
[COLOR=seagreen][HKEY_LOCAL_MACHINE\ControlPanel\Pen][/COLOR]
[B][COLOR=royalblue]"Hide"=[/COLOR][COLOR=red]-[/COLOR][/B]
Thanks to Mr. Makk and his tutorials thread for the Value delete (I was only aware of the Key delete from analysing RGUs)
Cheers,
FInixNOver
Click to expand...
Click to collapse
Wow, thank you!!!
Is there any program that will allow multiple REG sections to all be exported to a single "file.reg" so that they can all be reloaded or converted to a CAB install file? I have multiple sections of my Registry which i would like to have in a single .REG or .CAB file but when i export each part of the REG separately then cut n paste to combine then it does not seem to re-install in to my register after a clean ROM boot.
Any ideas?
LOL!
Use WinCe Cab Manager.
Make New Cab, and then import all your reg's into single cab.
If you want to export all regs, just use export function.
If you want edit your entries, you can edit their right there.
the7thson said:
Hey guys, I'd like to combine all my registry edits in to 1 single installable cab file. How can I do this? I have several regedits eg:
[HKEY_LOCAL_MACHINE\ControlPanel\Pen]"Hide"=dword:0
HKCU\ControlPanel\Keybd and change DeviceLockWhenSuspend to 0
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS and Change - CacheSize to 4096
As you can see, they are stored in my list of tweaks in plain English.. how can I make a properly formatted list of all of them and then make a cab that will install to my PPC and change all the appropriate reg entries.
Thanks in advance!
Click to expand...
Click to collapse
See my signature
Magic Tweaks is exactly what you need with alot more Regs
Ethermind said:
LOL!
Use WinCe Cab Manager.
Make New Cab, and then import all your reg's into single cab.
If you want to export all regs, just use export function.
If you want edit your entries, you can edit their right there.
Click to expand...
Click to collapse
Yeah, use wince cab manager! Just add a key to the registry or use file, import reg!
When you want to save the cab you'll get a message that you don't added any files, thats oke because a key or a value isn't a file!

Categories

Resources