Feature Condition in MSI maintenance mode
Hi,
I have a scenario wherein i have say 5 features in MSI (say A,B,C,D,E).
First user installs say only two features (A,B) and finishes the installation, now after few days he want to install one more feature which was not installed before (say C) and remove one of the feature which was installed before (say B), so he will double click the MSI, out of modify, change, and remove he selects modify radio button, clicks next and on feature selection box he selects extra feature (C) he want to install and unselects the one he wants to uninstall (B).
Now i want to know the condition which i can use at runtime to find which was the feature he installed firsttime and he wants to retain that feature (i.e., featurename of the one he wants to repair) (in this case it's A)
To check whether feature is selected for installation or not then we use "&FeatureName=3" and To check whether feature is installed locally or not then we use "!FeatureName=3".
Similarly i want to know the condition for the repair scenario (i.e., feature is already installed and user is repairing that feature)
Thanks
2. I am using the syntax in Installscript (e.g. MsiEvaluateCondition(hMSI, "&FeatureName=3"), I am executing installscript on next button event
Do share your idea on how to find which feature is user repairing at runtime
Thanks,
Ishant - ibahrani 11 years ago