/build/static/layout/Breadcrumb_cap_w.png

Per user install - registry keys in HKCU

Hi there

is it possible to have a per machine MSI with registry keys in HKCU for all users on the machine? I want both existing and new users to get the registry keys.

According to MSI reference, you choose this with the Root column of the Registry table. Also, I don't see a way to accomplish this, since -1 installs to current user only if it's a per user install, and when you use 1 it only installs for the user executing the installation. Do I use 3 for this? also it says this.

Note that it is recommended that registry entries written to the HKCU hive reference a component having the RegistryKeyPath bit set in the Attributes column of the Component table. This ensures that the installer writes the necessary registry entries when there are multiple users on the same computer.

Does that apply to this?

Thanks,
Travis

0 Comments   [ + ] Show comments

Answers (10)

Posted by: travbrack 15 years ago
Senior Yellow Belt
0
Update: 3 doesn't work.
Posted by: AngelD 15 years ago
Red Belt
0
A repair needs to be triggered for the HKCU registry entries to be written for the "next" user on first launch. This is done by an entrypoint such as an advertised shortcut.

Could you tell us which application you're trying to do this for.
Posted by: travbrack 15 years ago
Senior Yellow Belt
0
I'm trying to package PuTTY. I'm doing a "simple" install with Advanced Installer
Posted by: AngelD 15 years ago
Red Belt
0
Well; then make the shortcut to putty.exe advertised, mission accomplished!
Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
Hi Travis,

You need to author your package with 1 in the root column to make them current user. The trick is to make sure you are writing them with a component which uses one of the registry entries as the keypath. Provided your shortcut is advertised the reg keys will get written for each user through self healing when they run the app.

If your app doesn't have shortcuts you can use active setup to deliver current user settings.

Hope this makes sense.. Post again if you need any help. This mechanism is one of the most important things to grasp with windows installer.

Cheers,
Rob.
Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
Haha looks like I was too slow :)
Posted by: AngelD 15 years ago
Red Belt
0
True, but your description was a bit more detailed rob :D
Posted by: MSIPackager 15 years ago
3rd Degree Black Belt
0
Ahh Putty.. Nice straight forward app :)
Posted by: travbrack 15 years ago
Senior Yellow Belt
0
Changed the shortcut to the feature, instead of the EXE and my problems were solved.

Thanks!!
Posted by: AngelD 15 years ago
Red Belt
0
Great work travbrack!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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