Background: I'm looking for a way to disable the "Finish" button on the last page, immediately after the user presses on the button. However, it seems that NSIS takes the mouse down event and keeps the button pressed while executing the "leave" function, so it's not possible to update the button there.
So I thought I would duplicate the final page with another custom page that has the Finish button disabled, so that when the user clicks on the original "Finish" button he is taken to the second page which is identical with the first page, except the Finish button is disabled. This part worked fine.
However, I'm looking for a way to make the page execution jump directly to the "leave" function, after the "show" function. I tried calling the relevant code from the "show" function, I tried to simulate a click on the "Finish" button, but with no luck.
Any advices? Thanks!
So I thought I would duplicate the final page with another custom page that has the Finish button disabled, so that when the user clicks on the original "Finish" button he is taken to the second page which is identical with the first page, except the Finish button is disabled. This part worked fine.
However, I'm looking for a way to make the page execution jump directly to the "leave" function, after the "show" function. I tried calling the relevant code from the "show" function, I tried to simulate a click on the "Finish" button, but with no luck.
Any advices? Thanks!
Comment