Install registry key to another user
In our organization we distribute all MSI packages through a portal solution from Altiris, and all the packages are running/installing as an account with administrator privileges since the users doesn't have local admin rights. Now i have a MSI package with a registry key that installs on HKEY_CURRENT_USER, in other words on the account that runs the package. I need to get this key to register on the user that is logged in as the key contains some vital information regarding license server. I've tried to put the key under HKEY_LOCAL_MACHINE but it seems it won't read the value there.
Is there any easy workaround to resolve this issue?
Is there any easy workaround to resolve this issue?
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
MSIPackager
14 years ago
You can either use an advertised shortcut / self repair so that the CU keys get created for each user when they first run the app, or you can use Active Setup to deliver the CU keys when they logon. I'd only suggest Active Setup if the app has no shortcuts with which to invoke a repair though.
There will be literally hundreds of posts on here about this.
Regards,
Rob.
There will be literally hundreds of posts on here about this.
Regards,
Rob.
Posted by:
FunWithApps
14 years ago
Can you set the install to run as the Local System account? Then have the job run only when a user is logged in. That would get you the correct current user, and the system account will be able to place the key, since it has full rights.
On a machine that has multiple users, you would need to run it once for each logged in user.
Hope this helps!
On a machine that has multiple users, you would need to run it once for each logged in user.
Hope this helps!
Posted by:
RS|Stian
14 years ago
Thanks for your quick replies.
I've just read about Active Setup on [url=http://wisepackager.com/KJ/Active_Setup_and_how_to_implement_it.txt]this page[/url] and if i understand it correctly i need to create a separate MSI file that contains the registry key i want to set for each user when they log on?
I've just read about Active Setup on [url=http://wisepackager.com/KJ/Active_Setup_and_how_to_implement_it.txt]this page[/url] and if i understand it correctly i need to create a separate MSI file that contains the registry key i want to set for each user when they log on?
Posted by:
MSIPackager
14 years ago
No you add the HKLM reg entries to your existing MSI.
The active setup command line would them typically be msiexec /fu {MSI_productcode} /qb to repair current user entries for each user the first time they logon.
More AS info here:
http://www.etlengineering.com/installer/activesetup.txt
http://wikidesktop.org/index.php?title=Active_Setup
Regards,
Rob.
The active setup command line would them typically be msiexec /fu {MSI_productcode} /qb to repair current user entries for each user the first time they logon.
More AS info here:
http://www.etlengineering.com/installer/activesetup.txt
http://wikidesktop.org/index.php?title=Active_Setup
Regards,
Rob.
Posted by:
anonymous_9363
14 years ago
Posted by:
RS|Stian
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.