prakashjv
26th October 2011 16:05 UTC
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
sethradio
26th October 2011 23:32 UTC
You have to do that with install options
prakashjv
27th October 2011 05:04 UTC
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!!
T.Slappy
27th October 2011 06:12 UTC
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 :)
prakashjv
27th October 2011 08:34 UTC
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!!