Is there anyway to have the return value of a function for the ValueData
(or similar property). Tried the following:
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
ValueType: string; ValueName: "Hostname"; ValueData: GetComputerNameString(); \
Flags: preservestringtype;
But this simply adds the string GetComputerNameString()
to the registry item.