This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Updating HKLM and HKCU
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 30, 2010
04:02 AM
Updating HKLM and HKCU
I am creating a setup for an Excel Addin. It has a custom action to
1. add to HKLM to prepare Active Setup for other users
2. add to HKCU to activate the addin for the current (installing) user.
If I run the setup as administrator, the HKLM part works, but the HKCU updates the administrators registry and not the current user's registry.
If I run the setup without elevation, the HKCU part works but th HKLM part fails, as it is unable to write to HKLM.
How can I resolve this problem?
Thanks!
1. add to HKLM to prepare Active Setup for other users
2. add to HKCU to activate the addin for the current (installing) user.
If I run the setup as administrator, the HKLM part works, but the HKCU updates the administrators registry and not the current user's registry.
If I run the setup without elevation, the HKCU part works but th HKLM part fails, as it is unable to write to HKLM.
How can I resolve this problem?
Thanks!
(8) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 01, 2010
05:10 AM
*bump*
I'd be really grateful if someone could give me a reply on this
Thanks!
I'd be really grateful if someone could give me a reply on this
Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 01, 2010
06:49 AM
Hi,
You may refer the following help article which has more information regarding the registry entries.
http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=InstallShield2011-IHelpRegHKUSERSELECTABLEhtm&sliceId=&docTypeID=DT_MACROVISIONHELPNET_1_1&dialogID=99901351&stateId=0%200%2099897339
http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q211067&sliceId=1&docTypeID=DT_INFO_1_1&dialogID=99901351&stateId=0%200%2099897339
Thanks,
Lenwin
You may refer the following help article which has more information regarding the registry entries.
http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=InstallShield2011-IHelpRegHKUSERSELECTABLEhtm&sliceId=&docTypeID=DT_MACROVISIONHELPNET_1_1&dialogID=99901351&stateId=0%200%2099897339
http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q211067&sliceId=1&docTypeID=DT_INFO_1_1&dialogID=99901351&stateId=0%200%2099897339
Thanks,
Lenwin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 16, 2010
05:56 AM
Thanks, but my question was not how to write to HKLM *OR* HKCU, but how to write to HKLM *AND* HKCU.
Active Setup works fine and it's the path I (grudgingly) took because I couldn't find an installer that was capable of updating HKLM and HKCU during the install.
From your answer, it seems that InstallShield suffers the same limitation as the MSI installer, and thus cannot help me. A shame, as I am certainly not the first to have this problem.
Active Setup works fine and it's the path I (grudgingly) took because I couldn't find an installer that was capable of updating HKLM and HKCU during the install.
From your answer, it seems that InstallShield suffers the same limitation as the MSI installer, and thus cannot help me. A shame, as I am certainly not the first to have this problem.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 20, 2010
09:16 AM
Hi,
In a premier edition of InstallShield there is an option to advertise the shortcut and associate the registry entry to a particular component.
When the setup is installed as administrator it will advertised the shortcut icon on all users desktop. When logged into the user profile and clicked on the shortcut the associated registry entry will be populated.
Here the registry entry can be created under every user's HKCU hive and in HKLM for admin.
Could you let us know if this is the feature you are looking for.
Regards,
Lenwin
In a premier edition of InstallShield there is an option to advertise the shortcut and associate the registry entry to a particular component.
When the setup is installed as administrator it will advertised the shortcut icon on all users desktop. When logged into the user profile and clicked on the shortcut the associated registry entry will be populated.
Here the registry entry can be created under every user's HKCU hive and in HKLM for admin.
Could you let us know if this is the feature you are looking for.
Regards,
Lenwin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2010
02:16 AM
Thank you for the follow-up.
In essence, you solution seems to be a manual equivalent to Active Setup, for the registry to be modified, users must click a desktop icon. My need is for a fully automated solution.
It's funny that such a simple need cannot be addressed.
In essence, you solution seems to be a manual equivalent to Active Setup, for the registry to be modified, users must click a desktop icon. My need is for a fully automated solution.
It's funny that such a simple need cannot be addressed.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 21, 2010
03:53 AM
Hi,
Could you provide us a brief description of your requirement so that we can let you know if this can be achieved through InstallShield.
Regards,
Lenwin
Could you provide us a brief description of your requirement so that we can let you know if this can be achieved through InstallShield.
Regards,
Lenwin
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 22, 2010
07:22 AM
I need a setup which will allow me to update both HKLM *and* HKCU of the current user running the install, without any other action required by the user.
If the installing user doesn't have admin privilege, the install shall elevate with the classic 'do you want to let this program modify your computer settings' message.
In other words, the setup needs to run the HKLM update portion with elevated privilege and the HKCU update with normal privilege. Obviously, both updates need to be done when the install is completing, not during the pre-requisite stage.
Note that trying to change HKCU with elevated privilege changes the HKCU of the *administrator*, not the HKCU of the user running the install, this is the problem.
If the installing user doesn't have admin privilege, the install shall elevate with the classic 'do you want to let this program modify your computer settings' message.
In other words, the setup needs to run the HKLM update portion with elevated privilege and the HKCU update with normal privilege. Obviously, both updates need to be done when the install is completing, not during the pre-requisite stage.
Note that trying to change HKCU with elevated privilege changes the HKCU of the *administrator*, not the HKCU of the user running the install, this is the problem.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 31, 2010
07:44 AM
Hi,
Could you kindly let us know if you have tried the per-user installation context.
Per user Installation can be performed by setting the ALLUSERS property to a value empty string ("").
The value of the ALLUSERS property can be set in the General Information view.
Regards,
Lenwin
Could you kindly let us know if you have tried the per-user installation context.
Per user Installation can be performed by setting the ALLUSERS property to a value empty string ("").
The value of the ALLUSERS property can be set in the General Information view.
Regards,
Lenwin