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

Comments

Please log in to comment

Community Chosen Answer

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

Answered 03/05/2016 by: Badger
Red Belt

Please log in to comment

Answers

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.

Answered 03/03/2016 by: VBScab
Red Belt

Please log in to comment
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...

Answered 03/01/2016 by: Pressanykey
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share