Write Registry Key HKLM not working
Posted: Fri Apr 07, 2017 10:09 am
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
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