Archive: Problem with un.GUIEnd


Problem with un.GUIEnd
Hello,

I have one tiny last little problem happening with my script. As the very last thing of my uninstall, I want to send the user to my website which will have a page asking why they decided to uninstall, so that I can use the feedback for improvements.

When the Uninstall is complete, it should launch the page. It's working fine using this code:

Section un.onGUIEnd

ExecShell "open" "http://www.foobar.com/"

SectionEnd

The only issues are, it's launching the page while the last gui (success) page is on the screen, even without the user clicking the final OK button. From reading the help file I was under the impression that it wouldn't launch until the actual window was closed?

The other issue is when I remove my app using the add/remove programs applet (AR), the AR window is not refreshing to reflect the program was uninstalled from the AR list until the browser window is closed from the launching of my page, in fact you can't even set focus to the AR window with your mouse cursor until you close the browser window.

Any ideas around these issues?


TIA


I can't reproduce the un.onGUIEnd problem. When I create a simple installer with just un.onGUIEnd, it's executed after the dialog closes. Are you sure there's no other code section that opens the website?

As for the Add/Remove control panel freezing, see the following:

http://forums.winamp.com/showthread....ight=uninstall


I also experience NukeyDoo's problem. I must mention my installer is a MUI one, maybe that causes the problem?

I tried putting the ExecShell command both in un.onGUIEnd and
MUI_PAGE_CUSTOMFUNCTION_LEAVE of the MUI_UNPAGE_INSTFILES page (which is the last page in my installer). Both yielded the same (unwanted) result of executing the ExecShell *before* the user clicked "Close".

Thanks,
Dov.


This also might happen if you used plug-in with /NOUNLOAD option and dll stays attached at the end of uninstall.


I still can't reproduce this. Please attach an example.


Here's my script (attached).

Maybe it's because the uninstaller has no finish page?

Thanks a lot!


Use:

Function un.onInstSuccess
HideWindow ; not sure if this is needed I'm a little rusty
ExecShell open "http://feedback.example.com"
FunctionEnd


Emphasis on function :weird:
-dandaman32

This works!
Thanks a lot for your help; now it works as intended. I guess the problem was that I wrote "Section" instead of "Function" (another classic RTFM case).

So either un.onUninstSuccess or un.onGUIEnd works for me now (I'll use un.onUninstSuccess, to prevent the browser open if something went wrong).

Again, thanks a lot!