/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 15 years ago
Red Belt
0
I don't think that could be done "internally" by the MSI, other than through a mess of Custom Actions but then, why would it need to? You already half-answered your question, in that you could use the combination of REMOVE and ADDLOCAL:

/i ".\test.msi" REMOVE=Administrator ADDLOCAL==Runtime /qn
Posted by: Zerg 15 years ago
Senior Yellow Belt
0
ah hah! I forgot that feature properties have a order to them...thanks!!
Posted by: anonymous_9363 15 years ago
Red Belt
0
I forgot that feature properties have a order to themActually, they don't. You can enter properties in any order, the engine doesn't care.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ