philk
Posts: 5
Joined: Tue Mar 24, 2009 8:47 am

Updating CURRENT_USER key during ActiveDirectory deploy

Hello,

I am wondering if its possible at all to update the CURRENT_USER hive during a MSI install triggered by an ActiveDirectory group policy. Inside the DLL that is about to be deployed and registered I try to write to the CURRENT_USER hive and all my writes end up in the USERS\.Default hive. Is it possible at all to write entries to the CURRENT_USER hive during ActiveDirectory deployed MSI installs?

Thanks,
Phil
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updating CURRENT_USER key during ActiveDirectory deploy

Hi Phil,

If the installation type of the package is per-machine and the MSI is assigned per-machine, there are no users logged on. In this case the HKEY_CURRENT_USER hive cannot be accessed. However, if the installation type is per-user and the package is assigned per-user, the package should be able to access the hive.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
philk
Posts: 5
Joined: Tue Mar 24, 2009 8:47 am

Re: Updating CURRENT_USER key during ActiveDirectory deploy

thanks for your swift response!
The application we are trying to install is a toolbar for the Windows taskbar. The problem with it is, that it does need to be installed only once (or if a newer version exists) but a certain action should be executed for each user that logs in on this computer. The specfic action is to call rundll32 with a method inside the installed DLL that will make the toolbar visible for each logged in user. However this should be done only once and not on each login. But for each user that logs in on any client computer inside the domain, even if the software itself is already installed. I guess such is only possible with Group Policies?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updating CURRENT_USER key during ActiveDirectory deploy

Hi,

I'm afraid this is not supported by Group Policy. Per-machine installations cannot use per-user locations. For a file or registry entry the self healing feature would have been useful, but I'm not sure if something can be done for custom actions.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”