How to deploy HKCU Settings?
What is the best way to add/modify/deploy HKCU settings in a tranform? I have attempted this with Wise Package Studio and Orca. Some of the settings stick and some of the settings only apply to the first user that logs in. I have tried importing keys and directly editing the tables - nothing seems to work every time.
Does anyone have a sure-fire method for accomplishing this task? FYI - we deploy our apps via GPO.
Thank you...
Does anyone have a sure-fire method for accomplishing this task? FYI - we deploy our apps via GPO.
Thank you...
0 Comments
[ + ] Show comments
Answers (10)
Please log in to answer
Posted by:
tneubauer
16 years ago
Posted by:
MSIPackager
16 years ago
You should be using native MSI repair functionality to deliver HKCU keys. As long as your required CU reg keys belong to a component with a proper keypath and you have an advertised shortcut then they will get written for each user who runs the shortcut.
Active Setup is a handy tool but should be used sparingly - for example if you have a package with no shortcuts with which to instigate a self repair. AS will run for every user that logs on, regardless of whether they use the app in question. If you keep adding stuff via active setup your logon times will get longer and longer - this will particularly effect logons with new user accounts.
You will learn more and benefit in the long run if you do it properly...
Cheers,
Rob.
Active Setup is a handy tool but should be used sparingly - for example if you have a package with no shortcuts with which to instigate a self repair. AS will run for every user that logs on, regardless of whether they use the app in question. If you keep adding stuff via active setup your logon times will get longer and longer - this will particularly effect logons with new user accounts.
You will learn more and benefit in the long run if you do it properly...
Cheers,
Rob.
Posted by:
tneubauer
16 years ago
Posted by:
anonymous_9363
16 years ago
ORIGINAL: MSIPackagerWill it? Surely only if there's mismatch between a specific HKLM and HKCU registry key? As ever, I'm happy to be corrected but my understanding - and certainly the way I've used it in the past - is that a package would add the HKLM part, normally using the Product Code as the registry key. Then, when AS runs, it 'sees' that there's no corresponding HKCU part and executes the command line in StubPath.
AS will run for every user that logs on, regardless of whether they use the app in question.
Thus, that part of AS will only run for users to whom the package has been deployed.
Posted by:
MSIPackager
16 years ago
Maybe I didn't write that as well as I should have. I meant will run once for every user - which is why I highlighted the effect on new user accounts.
AS will run for anyone who logs on (regardless of how it's deployed) given that as you say it looks for mismatches between HKLM and HKCU keys. For example if a new package has just been installed on a machine which writes HLKM AS keys, that stub path will be run for me if I logon at that station - whether I use want to use that software or not... Depending on what that stub path does and how long it takes to execute, it could be an inconvenience / annoyance to users - especially if it's not necessary for them.
I was just trying to say don't use Active Setup as the easy way out as it's not the most efficient way of delivering CU components. In Ted’s case it is suitable as he has no shortcuts to instigate a self repair…
Does this make sense?
Cheers,
Rob.
AS will run for anyone who logs on (regardless of how it's deployed) given that as you say it looks for mismatches between HKLM and HKCU keys. For example if a new package has just been installed on a machine which writes HLKM AS keys, that stub path will be run for me if I logon at that station - whether I use want to use that software or not... Depending on what that stub path does and how long it takes to execute, it could be an inconvenience / annoyance to users - especially if it's not necessary for them.
I was just trying to say don't use Active Setup as the easy way out as it's not the most efficient way of delivering CU components. In Ted’s case it is suitable as he has no shortcuts to instigate a self repair…
Does this make sense?
Cheers,
Rob.
Posted by:
anonymous_9363
16 years ago
Posted by:
revizor
16 years ago
Posted by:
tneubauer
16 years ago
Posted by:
MSIPackager
16 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.