Installing Specific Features in a MSI Package


March 29, 2009

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.

  • Anonymous

    Excellant Article.

  • Anonymous

    Excellant Article.

  • Suchi.jigar

    please tell me the difference in ADDLOCAL and ADDSOURCE, i am always confused, in these terms.

  • Suchi.jigar

    please tell me the difference in ADDLOCAL and ADDSOURCE, i am always confused, in these terms.

  • 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.

  • 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.

  • 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

  • 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

  • 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

  • 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

  • http://www.msigeek.com/windows-installer-faq-part-4/ Windows Installer FAQ – Part 4 | MSigeek.com

    [...] For more information on ADDLOCAL property, check this – http://www.msigeek.com/installing-specific-features-in-a-msi-package/ [...]

  • http://www.msigeek.com/615/windows-installer-faq-part-4 Windows Installer FAQ – Part 4

    [...] For Information on ADDLOCAL property, check this article - http://www.msigeek.com/310/installing-specific-features-in-a-msi-package [...]

blog comments powered by Disqus

Previous post:

Next post: