On Jul 1, 2014, at 5:20 PM, Bart Reardon <
bart.r...@gmail.com> wrote:
> Just wondering if it's currently possible to display a dialog within MSC from a pre or post install script or otherwise have MSC display a generated error message?
Not currently.
It's not completely clear how something like should work.
Let's say there are ten items to be installed/removed. If there is an issue with item #2, should the install/removal of items 3-10 be held up/delayed/aborted because we are displaying a dialog? Or should we wait until all the installs and removals are done and then display any errors? What should happen if the user has quit MSC.app while the install/removal has taken place? Should we interrupt whatever they are doing? Is there actually anything the user can do about the situation (this answer probably depends on several factors).
How would this work if the install failure happens at the loginwindow? I doubt we'd want any sort of error dialog there.
What is the expected behavior if the item is also marked for unattended_install? A dialog showing up unbidden and untriggered is not what I would want/expect to happen.
> for example, I have some optional installs that perform some pre install checks and setup.
> If any of those fail it would be nice to have a meaningful error message based on the context of the failure rather than a generic "something bad happened, see your administrator".
I'm not even certain MSU/MSC even gives you that much feedback.
> I'm writing the scripts in python and while I could use something like Tkinter it would be nice to have MSC display the alert (besides, doing that would also display the generic error in MSC in addition to the Tkinter dialog...bleh).
More detail on your scenario(s) might lead to more possibilities.
>
> Bart