Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
464 views
in Technique[技术] by (71.8m points)

wix - ADDLOCAL=FEATURE1 in MSI installer removes other FEATURES

I am trying install one of FEATURE_NEW using wix installer setup.exe(2.0) on top of setup.exe(1.0) setup.exe /v /qn ADDLOCAL=FEATURE_NEW

It installs FEATURE_NEW, but issue is, it removes other features FEATURE1,FEATURE2 etc.

I want existing feature should upgrade and new FEATURE_NEW installed, no additional FEATURES should be installed.

So my question is Can I Install/upgrade product with previously installed feature list 'N' plus newly added feature i.e. N + NEW_FEATURES. I am searching something like,

setup.exe /v /qn ADDLOCAL=INSTALLED_FEATURES,FEATURE_NEW

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you are doing an ADDLOCAL then you are explicitly listing the features you want to install - the installed features are what you specify. It is not incremental, and does not mean "also install these features". For example, it turns off feature conditions. If you want to add features during a major upgrade with a bootstrapper you can use MsiEumFeatures() to get the installed feature list, to which you add your new ones. Another way would be to use a custom action to parse the ADDLOCAL string, sequenced after MigrateFeatureStates, and add the new one to the list.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...