Write Registry Key HKLM not working

Got a problem you cannot solve? Try here.
gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Write Registry Key HKLM not working

Postby gsaunders » 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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Write Registry Key HKLM not working

Postby FrancescoT » Fri Apr 07, 2017 12:42 pm

Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Re: Write Registry Key HKLM not working

Postby gsaunders » Fri Apr 07, 2017 1:27 pm

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 22 guests