adrien
03-24-2009, 04:10 PM
I recently had to modify an installer that did quite a few things before starting to install files etc, such as stopping and starting services.
If you do this from the On Pre Install event, you can't display any progress, since the page isn't showing. It's tempting at this point, since you need to show progress, to pop up a timed dialog. Resist that temptation!
The answer is to do this from within the events associated with the "While Installing" screen. This event takes quite a few mouse clicks to get to. (While installing->Edit->Actions->OnProgress). Then when editing this event you have to decide which stage is appropriate to do your work in. There are 4 stages. You have to basically guess which are appropriate.
I think instead it would be great if there were a few more events that were called back that were done during the progress stage, so you can do things and update the progress bar and description.
E.g a global event On Installing
same for uninstall.
If you do this from the On Pre Install event, you can't display any progress, since the page isn't showing. It's tempting at this point, since you need to show progress, to pop up a timed dialog. Resist that temptation!
The answer is to do this from within the events associated with the "While Installing" screen. This event takes quite a few mouse clicks to get to. (While installing->Edit->Actions->OnProgress). Then when editing this event you have to decide which stage is appropriate to do your work in. There are 4 stages. You have to basically guess which are appropriate.
I think instead it would be great if there were a few more events that were called back that were done during the progress stage, so you can do things and update the progress bar and description.
E.g a global event On Installing
same for uninstall.