Old 26th October 2011, 15:05   #1
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 25
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
prakashjv is offline   Reply With Quote
Old 26th October 2011, 22:32   #2
sethradio
Junior Member
 
Join Date: Oct 2011
Posts: 20
You have to do that with install options
sethradio is offline   Reply With Quote
Old 27th October 2011, 04:04   #3
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 25
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!!
prakashjv is offline   Reply With Quote
Old 27th October 2011, 05:12   #4
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 540
Send a message via ICQ to T.Slappy
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

Cool looking installers with custom design: www.graphical-installer.com
Design NSIS setup Pages easily: www.install-designer.com
Build NSIS installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.3 Rio: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 27th October 2011, 07:34   #5
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 25
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!!
prakashjv is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump