Question on HKCU reg keys

I'm packaging up Nuance Dragon NaturallySpeaking and that's all fine, but there's one step needed to turn off the inbuilt Microsoft Office speech tools which is simply going into tools/administrative options and ticking a box. I put a trace on and found that the keys affected are all in HKCU i.e. are user specific so I can't easily add this to my script as an HKLM reg key. Somebody said to me that it is best practice thse days to put keys into HKCU because of Citrix/Terminal server apps

I also saw a very interesting article in here about using an activesetup key http://etlengineering.com/installer/activesetup.txt

Wondered if anyone had any thoughts on how best to do this ?


0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 12 years ago
Red Belt
The recommended way to populate any user profile data is to create a "user" feature and make it the parent of an existing feature, provided the parent has an advertised entry-point, such as a shortcut. That way, when the entry-point is accessed, self-healing is triggered and your user profile stuff gets installed. Active Setup would be used when a package contains no advertised entry-points.

As to using HKCU over HKLM, that depends entirely on the application in question. Many applications don't use the recommended APIs (which search HKCU first, then HKLM), going instead directly to the hive.
Posted by: fuz_kitten 12 years ago
Second Degree Blue Belt
If you are publishing your application in a Citrix environment you will unable to to advertise your shortcuts as VB suggests and therefore you will not be able to populate HKCU in this way.

Active setup can only be used if you are planning on using a published desktop. If you are publishing icons then you will need to rely on shadow keys or a script run at log on or launch of the app.

Posted by: iburnell 12 years ago
Senior Yellow Belt
No - its not being published in Citrix - its a straight package. I just assumed it was bad coding from the vendor to use HKCU reg keys rather than HKLM - probablymy lack of knowledge !!

VBScab - thanks for your reply. So you're saying I could take the MST transform and add the user feature ?

Would the entries under this feature be the specific HKCU keys changed or could I somehow add the option in the package - in real time its a tick box set under administrative settings. This seems to remove the run key for ctfmon.exe that msoffice creates as this is a disability packagel that wants to dsiable the Microsoft speech recognition tools
Posted by: anonymous_9363 12 years ago
Red Belt
So you're saying I could take the MST transform and add the user feature ?Exactly. And yes, you'll want to add the HKCU junk to that feature. Have a search on AppDeploy for 'self healing' and search Google for John McFadyen's Windows Live blog for the same.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ