Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 9th September 2005, 11:19   #1
NukeyDoo
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
NukeyDoo is offline   Reply With Quote
Old 9th September 2005, 11:30   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 30th January 2006, 15:35   #3
dubek1
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.
  Reply With Quote
Old 30th January 2006, 16:41   #4
Takhir
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.
Takhir is offline   Reply With Quote
Old 31st January 2006, 16:27   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 1st February 2006, 06:40   #6
dubek1
Guest
 
Posts: n/a
Here's my script (attached).

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

Thanks a lot!
Attached Files
File Type: nsi test.nsi (969 Bytes, 318 views)
  Reply With Quote
Old 1st February 2006, 19:29   #7
dandaman32
Senior Member
 
dandaman32's Avatar
 
Join Date: Jan 2005
Location: Look behind you.
Posts: 209
Use:
code:
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
-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.
dandaman32 is offline   Reply With Quote
Old 2nd February 2006, 06:19   #8
dubek1
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!
  Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump