Setting initial state of choices in custom install pane
Setting initial state of choices in custom install pane
- Subject: Setting initial state of choices in custom install pane
- From: Mark Krenek <email@hidden>
- Date: Wed, 22 Aug 2007 17:02:59 -0500
I've got a situation in a distribution package where I have a custom UI plugin displayed between Select Destination and Installation Type that determines the state of the choices in the custom install pane. (My plugin drops some info in /tmp that the choices in the distribution package use to set their selected/enabled/visible state). I was hoping that since my UI plugin is displayed BEFORE the custom install pane, that the initial state of the choices would derive their state as influenced by my plugin. However, it appears that the installer sets the initial state of the choices immediately after the Select Destination screen and before my plugin. Therefore my choices such as this:
choices.choiceSims2.selected && system.files.fileExistsAtPath("/tmp/PetsExists")
don't work. Of course, once the user clicks any of the choices, everything gets synced back up the way I was hoping for in the first place. But it means that initially the choices aren't set up right. The workaround is to have none of the choices selected at start (start_selected = false) which forces the user to select a choice which in turn causes all the other choices to fix themselves up. This is less than desirable.
Is there any way to get the choices evaluated at the START of the custom install pane?
Mark Krenek Development Manager Aspyr Media
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden