Installing to HKCU
Hello
I am using an MSI to install a group of templates to user desktops. Our installation method will properly be SMS. My problem is that there is some registry setting in the HKCU which I need to be installed. Because they are templates that load up when word the user run any bits of the MSI. Is there a way to get the MSI to create the HKCU settings without having to be run for each user on start-up?
Thanks
I am using an MSI to install a group of templates to user desktops. Our installation method will properly be SMS. My problem is that there is some registry setting in the HKCU which I need to be installed. Because they are templates that load up when word the user run any bits of the MSI. Is there a way to get the MSI to create the HKCU settings without having to be run for each user on start-up?
Thanks
0 Comments
[ + ] Show comments
Answers (10)
Please log in to answer
Posted by:
India_Repackaging
16 years ago
Hi Craig,
SMS does all installations in system context. That means it will install only the machine data i.e. files and HKLM registries. The HKCU registries & files that are installed to the user profile only after the User Login.
1. This can be only done if the applications has any entry points such as advertised shortcuts or file extensions.
2. In case there are no entry points then you will have to use Active Setup or the user will have to manually repair the application from Add or Remove Programs (not recommended)
Cheers
SMS does all installations in system context. That means it will install only the machine data i.e. files and HKLM registries. The HKCU registries & files that are installed to the user profile only after the User Login.
1. This can be only done if the applications has any entry points such as advertised shortcuts or file extensions.
2. In case there are no entry points then you will have to use Active Setup or the user will have to manually repair the application from Add or Remove Programs (not recommended)
Cheers
Posted by:
AngelD
16 years ago
"or the user will have to manually repair the application from Add or Remove Programs (not recommended)"
Just of curiosity, why isn't it recommended?
If it's due to a repair using a non-admin user that shouldn't be a problem as the installation is done per-machine meaning the repair will be elevated even for machine components/resources.
/Kim
Just of curiosity, why isn't it recommended?
If it's due to a repair using a non-admin user that shouldn't be a problem as the installation is done per-machine meaning the repair will be elevated even for machine components/resources.
/Kim
Posted by:
anonymous_9363
16 years ago
ORIGINAL: applereaperActive Setup is a good solution for packages with no entry-point(s). Check out http://etlengineering.com/installer/activesetup.txt and post back if you have any problems.
My problem is that there is some registry setting in the HKCU which I need to be installed.
Posted by:
India_Repackaging
16 years ago
user will have to manually repair the application from Add or Remove Programs (not recommended)
I stated this for primarily two reasons:
1. Active Setup proves to be a better solution.
2. The organisations that i have worked for have maintained that they did not want the Normal Users to manually repair the application from the 'Add or Remove Programs' because some users are not aware of the 'Add or Remove Programs' or even the 'Repair' button. Some start using the applications w/o Repair, only to find out that the settings have not been applied, leading to numerous 'SupportCalls' (which are avoidable).
Also two of these organisations had viewing of 'Add or Remove Programs' disabled for the Normal Users.
Posted by:
AngelD
16 years ago
Posted by:
Tone
16 years ago
Only problem with active setup in this scenario is if the user hasnt launched an office application, any thing set under HKCU\Software\Microsoft\Office using active setup will be wiped as office recreates this key on first launch..
If its just data being written to the user profile you run a script to launch word and write your setting using an SMS program set "Run with user's rights"
If its just data being written to the user profile you run a script to launch word and write your setting using an SMS program set "Run with user's rights"
Posted by:
anonymous_9363
16 years ago
ORIGINAL: Tone...which is easily handled with robustly-written script, of course. :)
Only problem with active setup in this scenario is if the user hasnt launched an office application, any thing set under HKCU\Software\Microsoft\Office using active setup will be wiped as office recreates this key on first launch..
Posted by:
applereaper
16 years ago
Posted by:
Coriolus
16 years ago
Not sure if I understand this question clearly but it sounds like you want to add certain registry settings to each user?
If this is the case then I will tell you what I do:
1./ Export the registry key/keys from the registry to a file.
2./ Download 'Modifyprofile.exe' from here: http://www.optimumx.com/download/#ModifyProfile
3./ Create a custom action within your MSI to run modifyprofile and import the exported registry settings to all the profiles on the system.
- You will have to embedd modifyprofile and the regsitry file into your MSI by adding components that point to those files (one component for each file).
- Make your custom action to run one sequence before 'InstallFinalize' sequence
I do this kind of thing all the time and if that is what you need to do this is a very easy way to do it depending on your skill level and MSI editing software..
If this is the case then I will tell you what I do:
1./ Export the registry key/keys from the registry to a file.
2./ Download 'Modifyprofile.exe' from here: http://www.optimumx.com/download/#ModifyProfile
3./ Create a custom action within your MSI to run modifyprofile and import the exported registry settings to all the profiles on the system.
- You will have to embedd modifyprofile and the regsitry file into your MSI by adding components that point to those files (one component for each file).
- Make your custom action to run one sequence before 'InstallFinalize' sequence
I do this kind of thing all the time and if that is what you need to do this is a very easy way to do it depending on your skill level and MSI editing software..
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.