/build/static/layout/Breadcrumb_cap_w.png

What is ADDDEFAULT property in msi?

What is ADDDEFAULT property and how it is related to ADDSOURCE and ADDLOCAL.
ADDSOURCE is to install all the features mentioned it at the source location(component attribute should be 1 or 2) and ADDLOCAL to install locally(when component attribute is set to 0 or 2).

What is the purpose of ADDDEFAULT then?
In MSDN, it is written as for default settings.Can anyone elaborate it.

The link from msdn is
https://msdn.microsoft.com/en-us/library/windows/desktop/aa367518(v=vs.85).aspx

0 Comments   [ + ] Show comments

Answers (4)

Posted by: Badger 8 years ago
Red Belt
1

I have never used the ADDEFAULT property, nor do I recall having to do anything with it in a vendor MSI. I have had to use ADDLOCAL a few times. Especially with Business Objects, the have a CA that means no Features are installed with a silent install.

This pleasant description:

The value of the ADDDEFAULT property is a list of features delimited by commas that are to be installed in their default configuration. The features must be present in the Feature column of the Feature table. To install all features in their default configurations, use ADDDEFAULT=ALL on the command line.

A feature listed in the ADDDEFAULT property is installed in the same installation state as if the user had requested an installation-on-demand of the feature. The state is determined by which bits are set for the feature in the Attributes column of the Feature table, and which bits are set for the feature's components in the Attributes column of the Component table.

....seems to imply that the install on demand is used, I agree with VBScab, that is not good in an enterprise. I would have thought it would install the features listed but using the Local Source value from the feature table. That kind of makes sense BUT, the official word, seems to say that they will be installed on demand. I have never used that and as yet never seen a good reason for it.

Hope that helps

Posted by: anonymous_9363 8 years ago
Red Belt
0

>run from source is IMHO never an option for enterprise deployment.
Seconded.

I'd also add that I can't recall any time I've used ADDLOCAL on the command line, either.

Posted by: Pressanykey 8 years ago
Red Belt
0
Hi,
As you may know, each feature can have a default value to define where it should be "installed" to, Local, Source, etc.
These three properties allow you to override the individual feature setting.

I personally never use it via the command line, and use a packaging tool to customize the installation based on requirements (i.e. set the individual features to be installed locally or not). run from source is IMHO never an option for enterprise deployment.

Perhaps VBScab could also comment on this...

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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