I have a number of features in my installation project, and some of
them have prerequisites that must be checked (ie. IIS must be
installed, Office must be installed, ...).
Right now I'm using a 'Condition' tag on the Feature that sets the
Level to '0' if the condition isn't met, however this completely hides
the feature. Is it possible to disable (grayed out) the feature
instead of hiding it? I think that this will be easier for our
users...
Thanks!
The other route to go is to stick with the single feature & condition, and
then have some static text on this dialog or another dialog explaining that
Feature X isn't available because Office wasn't detected.
<pie...@mentalis.org> wrote in message
news:1171881930....@h3g2000cwc.googlegroups.com...
Another approach would just be to allow the user to select the feature
and show a message box asking them to deselect it, or even just
deselect it when they click next and say what you just did so that if
they go back they don't get confused about the de-selected feature.
If you do go down this route you should make sure that the feature
deselection logic is implemented server side as well in the
InstallExecuteSequence, otherwise you may still get users selecting
the feature from the command line using ADDLOCAL.
Stephen
Thank you
On the next button, you should be able to detect whether a feature has
been selected for instalation and you can condition a CA based on that
condition, or just always run the CA and put the condition logic in
the CA itself.
Get that CA to show an error message (NB you can't rely on using
[Msiprocess]message to show message boxes unless you've got MSI 3 and
you use VBS ProcessMessage) about the feature not being allowed, and
then you can use FeatureRequestState (http://msdn2.microsoft.com/en-
us/library/aa371662(VS.85).aspx) to de-select the feature.
Stephen