msi command line to modify a feature depending on feature condition
We have an MSI package that installs in our SOE with a set of default config files that is applicable to the majority of the company. The MSI package also contains other config files relative to specific departments in the company, eg Accounting, Marketing etc. The config files are contained in components within a feature. The feature has feature conditions which we use a Property to evaluate and use in a command line to install the relative component (same config file names, but pointing to different databases). I hope that makes sense??
Feature: "Database Config Files"
"Database Config Files" Feature Condition : DEPARTMENT = "Accounting"
"Database Config Files" Feature Condition : DEPARTMENT = "Marketing"
"Database Config Files" Feature Condition : DEPARTMENT = "Sales"
I can only get it to work if I remove the original default install and then run the command line again with the Property set to the other Department:
eg msiexec /i MyApp.msi DEPARTMENT="Accounting" /qb!
or msiexec /i MyApp.msi DEPARTMENT="Sales" /qb!
What is the command line to modify the already installed MSI to install the compoents (files) associated to say the Marketing department? I've tried playing around with manipulating the "DEPARTMENT" property and also ADDLOCAL and COMPADDLOCAL with no success.
The first line in the msi log file usually says, "Ignoring disallowed Property DEPARTMENT".