Installing Specific Features in a MSI Package

The ADDLOCAL, ADDSOURCE, and ADVERTISE properties can be used to install only a certain number of known features.

The following command-line script would be used to install the “Word” and “Excel” features of the example.msi package locally on the machine. Feature names are case-sensitive.

msiexec /i example.msi ADDLOCAL=Word,Excel /qb

The following command-line script would advertise the “Excel” feature and install the “Word”feature to run from source.

msiexec /i example.msi ADVERTISE=Excel ADDSOURCE=Word /qb

13 comments

  1. ADDLOCAL Property is used to install that particular feature locally on the machine.

    ADDSOURCE also do almost same but it will run from the source.

  2. ADDLOCAL Property is used to install that particular feature locally on the machine.ADDSOURCE also do almost same but it will run from the source.

  3. Guys, Keeping it simple.

    The value of the ADDLOCAL property is a list of features that are delimited by commas, and are to be installed locally.

    The value of the ADDSOURCE property is a list of features that are delimited by commas, and are to be installed to run from the source.

    For example:

    If the command line specifies: ADDLOCAL=ALL, ADDSOURCE = MyFeature, all the features are first set to run-local and then MyFeature is set to run-from-source.

    If the command line is: ADDSOURCE=ALL, ADDLOCAL=MyFeature, first MyFeature is set to run-local, and then when ADDSOURCE=ALL is evaluated, all features (including MyFeature) are reset to run-from-source.

    ————-

    Reference:
    http://msdn.microsoft.com/en-us/library/aa367536(VS.85).aspx

  4. Guys, Keeping it simple.The value of the ADDLOCAL property is a list of features that are delimited by commas, and are to be installed locally.The value of the ADDSOURCE property is a list of features that are delimited by commas, and are to be installed to run from the source. For example: If the command line specifies: ADDLOCAL=ALL, ADDSOURCE = MyFeature, all the features are first set to run-local and then MyFeature is set to run-from-source. If the command line is: ADDSOURCE=ALL, ADDLOCAL=MyFeature, first MyFeature is set to run-local, and then when ADDSOURCE=ALL is evaluated, all features (including MyFeature) are reset to run-from-source. ————-Reference: http://msdn.microsoft.com/en-us/library/aa367536(VS.85).aspx

  5. For clear understanding….

    For example:

    ADDSOURCE=f1 ,here f1 is the feature name.
    Feature(f1) may resides in your local machine or may be in a network path.

    Pls Correct me, if I am wrong

  6. For clear understanding….For example:ADDSOURCE=f1 ,here f1 is the feature name.Feature(f1) may resides in your local machine or may be in a network path.Pls Correct me, if I am wrong

  7. ADDLOCAL & ADDUSER both are public propertys.
    where as ADDLOCAL installs the features of an msi applicartion from the local machine(from the machine u re working on)
    Where as ADDUSER installs d features from source machine which means machines connecte in a LAN or network

Leave a Reply

Your email address will not be published. Required fields are marked *