Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

HKEY_ALL_USERS entries are not pused to all users at logon

Posted on 2009-04-22
3
Medium Priority
?
407 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:xperttech
  • 2
3 Comments
 
LVL 66

Expert Comment

by:johnb6767
ID: 24211860
"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....
0
 
LVL 5

Accepted Solution

by:
xperttech earned 0 total points
ID: 24215122
John6767,
My installer needs to load some DLLs hence the admin rights. If I want to avoid creating a second installer (a bit cumbersome) for the user's registry portion, I need to find a mechanism to insert a post-install insertion of those registry keys for each user as they login to a computer. This mechanism needs to remain in place even for users that login for the first time and not just existing users.
A follow up with my Installer-maker software support revaled a key that may do the above:
HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components
Can anyone  expand on this?
Thanks,
-XT
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 24221586
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?



0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question