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.
Photo

Next button on Select Features Dialog


9 replies to this topic

Generous

Generous
  • Members
  • 53 posts

Posted 27 February 2001 - 16:46

One little problem:
When I deselect all components in Select Feature Dialog the Next button stay enabled, but Next button have subscribed to SelectionNoItems|Enabled event.

I also try create new project in Wise for WI 3.0 with one simple feature and component, but Next always enabled. I try set Enabled to false in Next button property, then Next always disabled.

I try WI 1.11.2306.0 and 1.50.2296.2 on W2K.

Anyone can help me?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 February 2001 - 09:42

I think that SelectionNoItems is sent when no item has the input focus, not when all items are de-selected (i.e. not selected for installation). It is used to clear the description text for features if no feature has the focus (and therefore the description field should be blank).

BTW note that deselecting all features is a legal state for the installer - in this case it performs an uninstall.


Generous

Generous
  • Members
  • 53 posts

Posted 28 February 2001 - 11:06

I have tried nothing to select is not probably. Quits, what this button is disabled only if the list of features is empty?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 February 2001 - 18:08

Sorry, I don't understand. Can you please re-phrase your question?

Tomek

Tomek
  • Members
  • 5 posts

Posted 28 February 2001 - 18:22

How is it possible to disable Next button after deselecting all features ?

I do not think that deselecting all features is a legal state for the installer. It exists "Remove" option in Maintenance Window for uninstalling product.
Does exist any user performing uninstall that way:
1. Welcome Window - click Next .
2. Setup Type Window - select Custom Setup
3. Custom Setup Window - deselect all features
4. Choose "Install" to perform uninstall ?

I think it is a nonsense. Isn't it ?


Generous

Generous
  • Members
  • 53 posts

Posted 01 March 2001 - 08:16

Sorry, I try use electronic translate to write message.

I found only one case when no items has focus. If features list is empty. I can't remove focus from items manualy.

This is very little case.


Generous

Generous
  • Members
  • 53 posts

Posted 01 March 2001 - 08:21

2 Tomek:

Its no nonsense. Try it :-)
If product not installed, it will be installed with default selection!!
Its a nonsense :-)


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 01 March 2001 - 09:35

To Tomek: I agree that probably no user will do this, but from MSI documentation it would be possible, no error condition.

Generous: You are right, I can't remove focus from the feature tree. The FeatureTree events are very confusing, SelectionNoItem may be useless.

To All: You can make a feature "required" which will remove the "will not be installed" option from the drop down menu. You could do this for your main program files feature. Or you can display an error message when the Next button is clicked and no features are selected. I don't see a way to disable the Next button however.


Tomek

Tomek
  • Members
  • 5 posts

Posted 01 March 2001 - 10:16

Yes, I can make a feature "required". I do this, but I can't make one of subfeatures required in my setup.
So, it is possible to mark all subfeatures as "will not be installed". I display an error message when the Next button is clicked, but I don't like those solution.
It would be more smart to disable Next button.