When to use ClosingForInstall and ClosingAborted?

Hi,

I'm testing the AutomaticUpdater with my App. So far I have not used the ClosingForInstall or ClosingAborted events/properties at all. Is this OK? My app does load various files at startup. Does it matter that I'm not using these events and can you give an example where it would be beneficial to use these events?

Thanks,

Bod.

Hey Bod,

I've talked about this before (see: ClosingAborted / LoadSettings). But the short answer is if you're loading files (e.g. a user double clicks a file and your program is launched) or you're loading a settings file then you should use the ClosingForInstall & ClosingAborted functions.

The reason is that without first checking if the AutomaticUpdater is ClosingForInstall you'll waste time loading a file that the user won't actually use because you program will be closing for installation. For programs with heavy files and resources that needed to loaded this saves a great deal of time.

Does this make sense?