I had the problem, that the registry plugin is not able to evaluate variables. So you can just change registry values to hard coded values. But in my environment I need some kind of dynamical way.
To go into detail: an eg.result has to be written to an registry key.
I've done some research, and now I have a solution, that the registry plugin is able to handle variables (eg.ParseString did it)
I've added following code (~line 739) in the Registry.py
Code: Select all
newValue = eg.ParseString(newValue)Code: Select all
#set or delete key
try:
if (action == 0) or (action == 1):
newValue = eg.ParseString(newValue)
if keyType == _winreg.REG_DWORD:
newValue = int(newValue)
#change key
_winreg.SetValueEx(regHandle, valueName, 0, keyType, newValue)
I hope this is helpfull to others, and might be merged.
Regards
Owel