Registry Key HKCU for All Users goes to HKU\\.Default
Posted: Tue Sep 18, 2007 3:27 am
I've got an old VB6 app that I am installing with IA7. The app makes use of the VB Settings, which get stored down in HKEY_LOCAL_MACHINE\\SOFTWARE\\VB and VBA Program Settings\\xxx
This is the default for old VB apps.
I've copied this key into IA7 throught the Registry UI, and get the following line in my code:
Write Registry Key HKCU\\Software\\VB and VBA Program Settings\\xxx
However if the user selects to install for All Users, the registry entries get put in HKU\\.Default\\Software\\etc...
So two questions from this -
1) Is this correct. I didnt think that HKU\\Default would be the right place to put things as this is only used for local system accounts (so my googling tells me). A better option would be HKLM, although that wouldnt help my old VB app either.
2) How can I force it to HKCU. I know this might not be in keeping with an "All Users" install , but it would work for me in this case so if I can force it I'll be happy. I know I could load a registry file, although might that also go to HKC\\Default?
Or is this all outside of IA, and its just Windows Installer running under a different security context that causes HKCU to equate to HKU\\Default?
This is the default for old VB apps.
I've copied this key into IA7 throught the Registry UI, and get the following line in my code:
Write Registry Key HKCU\\Software\\VB and VBA Program Settings\\xxx
However if the user selects to install for All Users, the registry entries get put in HKU\\.Default\\Software\\etc...
So two questions from this -
1) Is this correct. I didnt think that HKU\\Default would be the right place to put things as this is only used for local system accounts (so my googling tells me). A better option would be HKLM, although that wouldnt help my old VB app either.
2) How can I force it to HKCU. I know this might not be in keeping with an "All Users" install , but it would work for me in this case so if I can force it I'll be happy. I know I could load a registry file, although might that also go to HKC\\Default?
Or is this all outside of IA, and its just Windows Installer running under a different security context that causes HKCU to equate to HKU\\Default?