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
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)
Please log in to answer
Posted by:
AngelD
15 years ago
Posted by:
travbrack
15 years ago
Posted by:
AngelD
15 years ago
Posted by:
MSIPackager
15 years ago
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.
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:
travbrack
15 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.