Re: Update incorrectly detects flashfxp running.
This can happen on occasion, even though we launch the installer at the last possible moment before the flashfxp process exits there is no guarantee that the flashfxp process has ended by the time the installer is ready to perform the installation.
This is especially true if you have the LiveUpdate prompt for the download location because for whatever reason I have seen the "Save" dialog create COM threads that do not exit immediately (they're still running even after the main threads have ended). I am not sure if these COM threads are created directly by Windows or by 3rd party shell extensions that get loaded when the "Save" dialog executed. I have observed these COM threads lasting up to 30 seconds and sometimes longer.
When the installer launches it unpacks and then performs all pre-setup tasks, right before the files are installed we perform the check to determine if FlashFXP is still running and if it is we wait up to 5 seconds, checking once per second before finally displaying a warning that FlashFXP is running.
I'm not sure what else we can do to avoid this type of situation but I am open to suggestions.
(In the past we used a stub loader program that waited for FlashFXP process to exit before launching the installer and this method had more problems then I could of ever imagined.)
The reason there's two setup processes is that one is a self-extracting archive that extracts the installation to a temporary location and the other is the main installer which may or may not be running in an elevated state to complete the installation.
|