Archive: How to hide the cancel button on install page window


How to hide the cancel button on install page window
I am trying to create a installer where I have 2 pages. First one being the custom page where I accept certain user inputs and second page is the install page window which has the progress bar, a cancel button, the details area and close button etc. I want to keep only progress bar and close button and want to hide all other controls. Can anyone let me know how this can be accomplished?

Thank you


You have to do that with install options


I am using nsDialogs for my first page... probably i will have to create one more page for install page also. Can you point me to any example where there are two custom pages are being built and first page calling the second page?

Thanks!!


a) Do you want to use original NSIS's Install page?
b) Or both pages are created with nsDialogs?
If a) then use ShowWindow HWND_to_window ${SW_HIDE} to hide it - do this for all controls
If b) then simply do not create controls which should be hidden :)


With your suggesstion a, I was able to hide close and cancel button by scripting as below

For Close
GetDlgItem $R0 $HWNDPARENT 1
ShowWindow $R0 ${SW_HIDE}

For cancel
GetDlgItem $R0 $HWNDPARENT 2
ShowWindow $R0 ${SW_HIDE}


but I am not able to hide the back button. I tried values from 3 to 10 with above commands but no success. Is there a way to get to know what is the actual index value [assuming it is the index of each control] of a control on the window.

Thanks!!