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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Update: 3 doesn't work.
Answered 03/05/2009 by: travbrack
Senior Yellow Belt

Please log in to comment
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.
Answered 03/05/2009 by: AngelD
Red Belt

Please log in to comment
0
I'm trying to package PuTTY. I'm doing a "simple" install with Advanced Installer
Answered 03/05/2009 by: travbrack
Senior Yellow Belt

Please log in to comment
0
Well; then make the shortcut to putty.exe advertised, mission accomplished!
Answered 03/05/2009 by: AngelD
Red Belt

Please log in to comment
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.
Answered 03/05/2009 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Haha looks like I was too slow :)
Answered 03/05/2009 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
True, but your description was a bit more detailed rob :D
Answered 03/05/2009 by: AngelD
Red Belt

Please log in to comment
0
Ahh Putty.. Nice straight forward app :)
Answered 03/05/2009 by: MSIPackager
Third Degree Black Belt

Please log in to comment
0
Changed the shortcut to the feature, instead of the EXE and my problems were solved.

Thanks!!
Answered 03/05/2009 by: travbrack
Senior Yellow Belt

Please log in to comment
0
Great work travbrack!
Answered 03/06/2009 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity