How to Select Features From Command Line

后端 未结 3 955
离开以前
离开以前 2020-12-09 15:11

This might be a naive question. I have to manually edit a .WXS file to make it support select features from command line.

For example, there are 3 features in .WXS f

3条回答
  •  不知归路
    2020-12-09 15:51

    The accepted answer already mentions the ADDLOCAL property, but seems to imply that you can select only one feature. You can actually select multiple features by seperating them by commas like this:

    msiexec /i install.msi ADDLOCAL=Feature1,Feature2
    

    or

    msiexec /i install.msi ADDLOCAL=Feature2,Feature3
    

    Another hint: you can discover these feature names by opening the msi with orca. This is very useful when you want to use these tricks to create a bootstrapper that installs certain features of thirdparty msi packages.

提交回复
热议问题