I am using a .INI file to incorporate registry changes. The routine first enumerates the sectiosn and then read the keys for each section. If the referenced registry key ahs changed, then it'll be updated.
.INI structure:
code:
; Mandatory registry settings for users
;
; Format:
;
;[RegistryEntryNumber]
;Kernel = OS kernel verion to which the registry setting should be applied
;GroupInclude = User groups to be included in the registry update
;HKey = Registry key (HKCU, HKLM, HKCR)
;Subkey = Registry subkey
;Entry = Registry entry
;Value = Registry value
;Type = Registry type (defaults to REG_SZ)
;Reboot = Reboot flag (defaults to 0)

[1]
Kernel=WinNT, Win2K
GroupInclude=Domain Users
HKey=HKCU
Subkey=SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
Entry=AutoRestartShell
Value=1
Type=REG_DWORD
Reboot=0

Code for the routine is posted in the UDF section: ProcessRegINI()
_________________________
There are two types of vessels, submarines and targets.