Common Settings For All Machine Users

I need to deploy an application and want to ensure that all users on a single machine are configured with the same application settings which I pass during the deployment process (msiexec.exe /i "xxx.msi" ALLUSERS="2" SQLDB="yyy"), particularly SQL database name.

The deployment creates the desktop icon, as I want, and when a new user clicks on this, I get the standard message "Please wait while windows configures .....".  I was expecting the new user to have the same setting for SQLDB as the administrative deployment.  It isn't.  What am I missing?

Any guidance would be appreciated.

Regards

Julie
JulieSenior Analyst/ProgrammerAsked:
Who is Participating?
 
Vadim RappConnect With a Mentor Commented:
In this case, it's only the way to be able to specify "don't overwrite". You can't specify "don't overwrite registry value" , but you can specify "don't overwrite keypath of the component". So you make the registry value you don't want overwritten the keypath and then specify "don't overwrite keypath" for that component.
0
 
Vadim RappCommented:
please explain how you know that sqldb is not the same.
0
 
JulieSenior Analyst/ProgrammerAuthor Commented:
Hi, thanks for responding.

The property is saved to a registry key for each individual user.  I looked at the key for the administrative install and it has the value passed.  The second user has the default setting in the MSI.

Regards

Julie
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Vadim RappCommented:
Which is expected, if there was installation for that 2nd user, and it went without the passed parameter. Properties that took place during the installation are not stored anywhere in the system by themselves. Store this registry setting under hklm; make it the keypath of the component; and the component must have flag "never overwrite".
0
 
JulieSenior Analyst/ProgrammerAuthor Commented:
Hi

OK, so unless I store the results of the first install into a shared registry location, or say an INI file for that matter, any subsequent install will take the default values.

Could you clarify what you mean when you say make it the keypath of the component.  Is that referring to a System Search?
0
 
Vadim RappCommented:
like this for example. Also see description of the flag msidbComponentAttributesNeverOverwrite in the article "Component Table" in Windows Installer SDK Help.
Capture-02-23-00001.png
0
 
JulieSenior Analyst/ProgrammerAuthor Commented:
OK ... I think I understand, but you can only set one registry value as the key as its the existence of the key path that is important, rather than the value?
0
 
JulieSenior Analyst/ProgrammerAuthor Commented:
Cheers, that gives me something I can run with.

Thanks

Julie
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.