cheryll
29th May 2009 10:14 UTC
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.
Afrow UK
29th May 2009 10:49 UTC
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
cheryll
29th May 2009 11:02 UTC
Well, I didn't have a leave page at all.
Page custom Updates
I tried adding an empty leavepage, but that doesn't help.
Page custom UpdatesShow UpdatesLeave
I have some function calls in that page, could that be a problem?
Afrow UK
29th May 2009 17:10 UTC
Can't help without the code.
Stu
cheryll
2nd June 2009 07:22 UTC
Here it is, I hope you can find something. It's a bit chaotic.
Thanks for the help.
Afrow UK
2nd June 2009 12:15 UTC
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
cheryll
2nd June 2009 12:35 UTC
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...
Afrow UK
2nd June 2009 20:33 UTC
I can't see any errors but you could start by moving everything but the code to show the dialog to sections.
Stu