Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th May 2009, 09:14   #1
cheryll
Junior Member
 
Join Date: Aug 2007
Location: Ruhrpott, Germany
Posts: 37
Custom install page: Back or Abort also start installation

Well, the problem is quite strange. I have a custom page that basically just starts a bunch of other installers. NSIS automatically added a Install button and waits for the user to press it to start the installations.
That works fine, but the same happens when I press Back or Abort or X. It still starts the installers. If I press the abort button I get an abort confirmation box, but the installer still runs along merrily after I click "yes, I want to abort".
I can only get it to stop by aborting the process from the task manager.
I could disable the back button, but I do need a way to abort the installer at this time.

I don't think this is working as intended, please give me a hint how to avoid this behaviour.
cheryll is offline   Reply With Quote
Old 29th May 2009, 09:49   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
You must have your custom page set up incorrectly, i.e. you are calling nsDialogs/InstallOptions from the leave function as opposed to the show function.

Page Custom ShowFunction [LeaveFunction]

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 29th May 2009, 10:02   #3
cheryll
Junior Member
 
Join Date: Aug 2007
Location: Ruhrpott, Germany
Posts: 37
Well, I didn't have a leave page at all.
code:
Page custom Updates


I tried adding an empty leavepage, but that doesn't help.
code:
Page custom UpdatesShow UpdatesLeave


I have some function calls in that page, could that be a problem?
cheryll is offline   Reply With Quote
Old 29th May 2009, 16:10   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Can't help without the code.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 2nd June 2009, 06:22   #5
cheryll
Junior Member
 
Join Date: Aug 2007
Location: Ruhrpott, Germany
Posts: 37
Here it is, I hope you can find something. It's a bit chaotic.

Thanks for the help.
Attached Files
File Type: nsi mmoffice_sauber.nsi (7.8 KB, 61 views)
cheryll is offline   Reply With Quote
Old 2nd June 2009, 11:15   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
I doubt that script even compiles as your page show function is FrameworkShow and yet you have Page Custom Framework as opposed to Page Custom FrameworkShow.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 2nd June 2009, 11:35   #7
cheryll
Junior Member
 
Join Date: Aug 2007
Location: Ruhrpott, Germany
Posts: 37
Ah well, I just forgot to take that out after experimenting with a leave page.

I wouldn't have compiled anyway, since I had to clean up some stuff, cut out program names and texts.

I added a compiling version, if that helps...
Attached Files
File Type: nsi mmoffice_sauber.nsi (7.8 KB, 58 views)
cheryll is offline   Reply With Quote
Old 2nd June 2009, 19:33   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
I can't see any errors but you could start by moving everything but the code to show the dialog to sections.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   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