Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Getting Feature Conditions to Reevaluate During Repair/Modify...

2 replies to this topic


  • Full Members
  • 437 posts

Posted 12 April 2013 - 15:09

Hi there,

I have a couple of features that are installed conditionally based on the presence of a third party app.  The app is detected via a System Search of the Registry for a raw value which sets a property used in the condition.  During initial installation, it works fin as expected both in the absence and presence of the third party app.


Here is where an issue comes in.  If a target machine does not have the third party at time of installation of our product.  Afterwards, the user installs the third party app and needs are 'stuff' contained in the said feature(s) to work in conjunction.  I thought one could simply run a Repair or Modify, the registry would be searched, conditions reevaluated and the pieces would be put in place.  That does not appear to be the case.


No matter what I try after initial installation, I can't get the now needed Feature components to install via a Maintenance install.  The only thing that currently works is uninstall/reinstall.  Is there any way to get this to work from a maintenance install?  The features are displayed on the Modify dialog.  I even tried marking the components to reevaluate conditions thinking that may use the feature conditions because there are no component conditions involved.


Any help in getting this to work from Repair/Modify, if possible, would, as always, be GREATLY APPRECIATED!




  • Full Members
  • 437 posts

Posted 14 April 2013 - 22:51

I received this reply elsewhere...


Use ADDLOCAL property to install additional features after initial install.

MsiExec /I {productcode} ADDLOCAL=feature1,feature2 /qb



If this is true, I'm not quite sure what the Modify option is on the maintenance dialog is for then.  I would think that should handle the ADDLOCAL adjustment by setting the desired, displayed features to install.


In my install, the two features in question are the only two set as visible.


I can't quite comprehend that the command line is the only way to add these two features.  If the modify option doesn't do it, I would need a custom action to get the list of currently installed features, add the ones now selected to be installed and go from there.


I must be missing something (using InstallShield 2012) as I would think there has to be a way to get selecting the Modify option to do the trick.

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 15 April 2013 - 17:25

A log file might help understanding what's going on.


A modify install should be able to change the feature selection. A repair (reinstall) should only reinstall the features that are installed already, and not add additional features.

It may also make a difference whether you set the feature level to 0 or to a value that's higher then the INSTALLLEVEL if the third party application isn't detected.