|
|
#1 |
|
Junior Member
Join Date: Jun 2005
Posts: 16
|
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 |
|
|
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
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 NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#4 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,220
|
This also might happen if you used plug-in with /NOUNLOAD option and dll stays attached at the end of uninstall.
|
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,338
|
I still can't reproduce this. Please attach an example.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
Here's my script (attached).
Maybe it's because the uninstaller has no finish page? Thanks a lot! |
|
|
|
#7 |
|
Senior Member
Join Date: Jan 2005
Location: Look behind you.
Posts: 209
|
Use:
code: Emphasis on function -dandaman32 ExperienceUI for NSIS | Latest project: Enano CMS Do not PM me on the Winamp forums, I hardly ever check my messages here; you are more likely to get my attention through the ExperienceUI forum.
|
|
|
|
|
|
#8 |
|
Guest
Posts: n/a
|
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! |
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|