Inno Setup doesn't seem to be writing to the registry on a 64-bit machine

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 subkey HKLM\SOFTWARE , no added value is added.

I tried different subsections under the scenes HKLM\SOFTWARE and Pascal, but Inno Setup simply refuses to create a new subsection or value.

I am running 64 bit Windows 7, UAC is off.

+4
source share
1 answer

Finally decided.

Inno Setup worked on a 32-bit machine on a 32-bit machine, so HKLM corresponds to HKLM \ Wow6432Node.

I need to add check for IsWin64 and use HKLM64 in this case.

+10
source

Source: https://habr.com/ru/post/1440554/


All Articles