I have a very simple Inno Setup script containing this [Registry]
section:
[Registry]
Root: HKLM; Subkey: SOFTWARE; Flags: createvalueifdoesntexist; ValueType: string; ValueName: ABC; ValueData: abc
However, when I check the HKLM\SOFTWARE
subkey, there is no value added.
I tried different subkeys under the HKLM\SOFTWARE
and Pascal scripting, but Inno Setup simply refuses to create a new subkey or value.
I am running a 64bit Windows 7, the UAC is turned off.
PrivilegesRequired
directive value ? I'm asking because if you changed it to something different fromadmin
value, InonSetup doesn't run the setup elevated, thus it might not have rights to write to theHKLM
root. Could you include this information into your question ? – TLamaPrivilegesRequired
belowadmin
, the setup wouldn't even run with admin elevation (no matter UAC is on or off), thus you wouldn't have those rights at all. That's why that response was mandatory... – TLama