Page 1 of 1

Write Registry Key HKLM not working

Posted: Fri Apr 07, 2017 10:09 am
by gsaunders
I have a script where the ALLUSERS = TRUE

Down in the Perform Installation section I have the following code:
Write Registry Key HKCU\Software\Test\Test, 0
AND
Write Registry Key HKLM\Software\Test\Test, 0

Essentially wanting the key in both HKCU and HKLM. We are testing this as apparently a supporting external application is looking at one of these keys... sadly over different versions of that 3rd party app it has looked at HKCU in some versions and in later versions it looked in HKLM so I really need to store this in both places.

But when the script is run it does NOT write to both HKCU and HKLM is only goes to HKCU.

I thought ALLUSERS = TRUE was controlling this. But I tested this by setting ALLUSERS to FALSE right before the Write Registry from HKLM, but that did not work.

Am I missing something.

Thanks,

Greg

Re: Write Registry Key HKLM not working

Posted: Fri Apr 07, 2017 12:42 pm
by FrancescoT

Re: Write Registry Key HKLM not working

Posted: Fri Apr 07, 2017 1:27 pm
by gsaunders
Interesting

This is a 32 bit application and setup has the Set Win32 to Native 32 bit windows and windows 32 on windows 64 install mode.

The HKCU\Software\Test\Test value entry is going directly where I told it to go. NOT in HKCU\Software\Wow6432Node\Test

BUT I do NOW see the HKLM\Software\Test\Test value entry going into HKLM\Software\Wow6432Node\Test\Test.

I didn't see it there earlier. Maybe I forgot to refresh the registry at some point while I had it up and running.

Thanks.