Change feature state after installation from within MSI?
I'm creating a MSI with 3 features. Admin, Runtime and Instant. During installation, based on the INSTALL_TYPE property, the relevent Feature is installed. (ie. INSTALL_TYPE=Administrator, etc)
What I'm wondering is, how can I change the feature state once this is installed via command line without doing a wrapper?
I am able to change the feature states by issing a REMOVE=Administrator and then a ADDLOCAL=Instant, but is there a way to remove the feature in the MSI? The only way I can figure out is by using install levels and this won't work as they are completely seperate installs, not cumulative.
I've created a condition, If Installed.. and then a If INSTALL_TYPE=Administrator .. to detect that it's already installed but a feature change is desired....but then what?! :)
Thanks
Edit: After re-reading this, I thought I'd clarify:
1) Do initial install:
/i ".\test.msi" install_type=Administrator /qn
2) Change to runtime after it's already installed:
/i ".\test.msi" install_type=Runtime /qn
The second step would see it's already installed and know a feature change is desired, remove the Administrator feature and install the Runtime.
What I'm wondering is, how can I change the feature state once this is installed via command line without doing a wrapper?
I am able to change the feature states by issing a REMOVE=Administrator and then a ADDLOCAL=Instant, but is there a way to remove the feature in the MSI? The only way I can figure out is by using install levels and this won't work as they are completely seperate installs, not cumulative.
I've created a condition, If Installed.. and then a If INSTALL_TYPE=Administrator .. to detect that it's already installed but a feature change is desired....but then what?! :)
Thanks
Edit: After re-reading this, I thought I'd clarify:
1) Do initial install:
/i ".\test.msi" install_type=Administrator /qn
2) Change to runtime after it's already installed:
/i ".\test.msi" install_type=Runtime /qn
The second step would see it's already installed and know a feature change is desired, remove the Administrator feature and install the Runtime.
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
15 years ago
Posted by:
Zerg
15 years ago
Posted by:
anonymous_9363
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.