Link to home
Start Free TrialLog in
Avatar of xperttech
xperttechFlag for United States of America

asked on

HKEY_ALL_USERS entries are not pused to all users at logon

I'm using an installer program to deliver an application's registry key for all my users. The problem I have is that I have tried placing it under:

a) HKEY_ALL_USERS\Software\<my program>
b) HKEY_USERS\.Default\Software\<my program>

...and after a user logon, the entries are not pushed to the users HKEY_CURRENT_USER hive

I have even tried pushing the entries in a logon script directly to the HKEY_CURRENT_USER\Software\<my program>
After I login, I see the installer running but when I inspect the registry no changes were added.

Note: The installer always runs with administrator credentials. Is it possible it's inserting into the administrator's hive?
Avatar of johnb6767
johnb6767
Flag of United States of America image

"Note: The installer always runs with administrator credentials. Is it possible it's inserting into the administrator's hive?"

Yes. Just let it run under HKCU as the end users themselves. As long as it is not a Policy Key, they should have access to most other spots....
ASKER CERTIFIED SOLUTION
Avatar of xperttech
xperttech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That key basically tells Windows that a component is installed. There is an "IsInstalled" value under there that you can manipulate to make the OS think it isnt installed......Outside of that, I cant add any more on it.....

"I'm using an installer program to deliver an application's registry key for all my users"

Thats why I was suggesting just to keep it under HKCU. Didnt realize it did more.....

As for teh registry portion, you could script a few simple lines maybe in a batch file, that the installer can lay down in the %USERNAME%'s startup?