Matthew Toseland skrev:
> On Friday 21 August 2009 20:12:39 Zero3 wrote:
>> Matthew Toseland skrev:
>>> Here's another one:
>>>
>>> I accidentally built the installer with the beta branch. The tray icon 
>>> worked, but when I uninstalled, and told it to do the survey, the survey 
>>> failed (as usual), but control panel hung. Ideas? I think it might be 
>>> waiting for firefox to close, but this is very bad behaviour, as there may 
>>> be other stuff in firefox?
>>>
>>> I don't think this is specific to the beta branch - we wait for firefox (or 
>>> whatever browser) to close before closing control panel.
>> Nop, it will not wait for the browser to close. It will exit right after 
>> launching:
>>
>> [CODE]
>> If (_DoSurvey)
>> {
>>      Run, http://freenetproject.org/uninstall.html, , UseErrorLevel
>> }
>>
>> Exit()
>> [/CODE]
>>
>> (The execute-and-wait-for-it-to-finish command is called "RunWait" as 
>> opposed to the "Run" used here which will continue right away)
>>
>> Are you sure that freenetuninstaller.exe is running while the control 
>> panel hangs?
> 
> I don't know. I do know that control panel hangs until the browser exists.

Odd. Maybe it also considers processes spawned by the uninstaller as 
part of the uninstaller itself, and does not return control to the 
control panel until all of these have terminated. Would make sense, as 
uninstallers often continue in other processes than the originally 
executed one (the wininstaller uninstaller included).

Nevertheless, this is a design choice by Microsoft. If they want to 
freeze out the user while any part of an uninstaller is running, I 
shouldn't try to (and probably can't) get around it.

A possible workaround could be to add a message to the survey completion 
page simply asking the user to close the window.

- Zero3

Reply via email to