RegToPB - convert Registry (.reg) to PB source

Developed or developing a new product in PureBasic? Tell the world about it.
eJan
Enthusiast
Enthusiast
Posts: 366
Joined: Sun May 21, 2006 11:22 pm
Location: Sankt Veit am Flaum

RegToPB - convert Registry (.reg) to PB source

Post by eJan »

RegToPB is a small tool for converting Registry exports (.reg) into PB source. It uses Droopy Registry functions to write PB source back to Registry, drag'n'drop supported. When compiled 'Include\_Droopy Registry.pbi' is extracted into (.reg) folder, it can be instantly used/compiled.
I have made a lot of tests using UltraCompare Professional 6.0, latest test was comparing complete
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" without errors.
Suggestions, corrections are welcome.

Download (8k): RegToPB_GUI.rar

XP SP3, PB 4.20
Last edited by eJan on Wed Dec 03, 2008 8:06 pm, edited 3 times in total.
klaver
Enthusiast
Enthusiast
Posts: 147
Joined: Wed Jun 28, 2006 6:55 pm
Location: Schröttersburg

Post by klaver »

Code: Select all

Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]

; some comment here
"NoWindowsUpdate"=dword:00000001
Does it work for you?
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

klaver wrote:

Code: Select all

Windows Registry Editor Version 5.00


[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]

; some comment here
"NoWindowsUpdate"=dword:00000001
Does it work for you?
It can be set in one of two branches, either in HKCU or HKLM.

For use in HKCU its supposed to be:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\]

leave the Explorer part off.

For use in HKLM its supposed to be:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]

where you use the Explorer part in HKLM but not in the HKCU branch.

So your registry entries should look like this:

Code: Select all

For use in HKLM:

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] 

; some comment here 
"NoWindowsUpdate"=dword:00000001


or if you want to use it in HKCU your registry entry would look like this:

Windows Registry Editor Version 5.00 

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\] 

; some comment here 
"NoWindowsUpdate"=dword:00000001

If you use it in HKLM it applies to the whole computer. If you use it in HKCU it applies to the currently logged on user. Use one or the other, not both.
Last edited by SFSxOI on Tue Dec 02, 2008 11:42 pm, edited 1 time in total.
Fredi
Enthusiast
Enthusiast
Posts: 143
Joined: Wed Jul 23, 2008 10:45 pm

Post by Fredi »

Great work, thank you
Post Reply