Archive: Hide Back Button on Abort Page


Hide Back Button on Abort Page
Hi all.

I know this should be easy, but clearly I'm missing something. When my installer calls an Abort, I do not want the back button to be visible on the Abort page.

I Can can Hide the Cancel button with (just to test):
GetDlgItem $0 $HWNDPARENT 2
ShowWindow $0 0
Abort

But the Back button is not affected by:
GetDlgItem $0 $HWNDPARENT 3
ShowWindow $0 0
Abort

I have tried $HWNDPARENT 0 through 9. I know, I'm grabbing at straws! Any thoughts? Thanks.


You need to do it in the abort page's show/create function if it has one. If you do it before, NSIS just makes it visible again before the page is shown (safety feature).

-Stu


Originally posted by Afrow UK
You need to do it in the abort page's show/create function if it has one. If you do it before, NSIS just makes it visible again before the page is shown (safety feature).

-Stu
Hmmmm, OK good point. How do I get into the abort page's show function if I'm just using a simple abort command? Or would I have to use a custom page abort (does that even exist)? Thanks for the input, I really appreciate it.

Well when you said Abort page I thought you're using some special InstallOptions Abort page someone has made...
What is the Abort page?? Is it something new in Modern UI?

-Stu


I got that problem too, I can't hide the button with "0"
.But when i used conbine with WinMessage.nsh it works.