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







If you’re not a subscriber, you can have msigeek blog notifications delivered to you free via these options: RSS Updates , Email Updates and SMS Alerts.

  • Welcome to Packegers
    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
  • Vijay Raj
    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
  • chow
    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.
  • Suchi.jigar
    please tell me the difference in ADDLOCAL and ADDSOURCE, i am always confused, in these terms.
  • Anonymous
    Excellant Article.
blog comments powered by Disqus

Previous post:

Next post: